Which product are you using?
PDF.js Express Plus
PDF.js Express Version
Tried 8.4.0 and 8.7.4
Detailed description of issue
I am trying to run the sample code from your https://github.com/pdfjs-express/pdfjs-express-custom-ui-sample/ Github repo and the code just doesn’t work! The page shows with simple buttons but the document never loads and I see errors in the browser console saying:
PDFJSDocumentType.js:2749 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'addSearchListener')
at trackAnnotationEvents (PDFJSDocumentType.js:2749:359)
at PDFJSDocumentType.js:2759:358
trackAnnotationEvents @ PDFJSDocumentType.js:2749
(anonymous) @ PDFJSDocumentType.js:2759
Promise.then (async)
ja @ webviewer-core.min.js:188
z @ webviewer-core.min.js:188
Promise.then (async)
ja @ webviewer-core.min.js:188
(anonymous) @ webviewer-core.min.js:188
ca @ webviewer-core.min.js:188
ba.qx @ webviewer-core.min.js:297
(anonymous) @ main.js?t=1706031856893:34
Expected behaviour
The document to load and show on the page without errors
Does your issue happen with every document, or just one?
Every document
Link to document
Not relevant / Happens with all documents
Code snippet
I was trying to reply on the previous discussion to continue on the same topic but your system will not allow more than 3 replies…? So I had to open this new topic.
I’m just trying to make your own Custom UI code to work. It is unchanged and simply doesn’t work.
Please help