Detailed description of issue
Getting this error log on loading this pdf -
Cannot read property ‘1’ of undefined
at webpack_exports._getXYDest (PDFJSDocumentType.js:2302)
at new LinkAnnotationElement (PDFJSDocumentType.js:1561)
at Function.value (PDFJSDocumentType.js:1563)
at PDFJSDocumentType.js:2280
at Array.map ()
at PDFJSDocumentType.js:2280 Expected behaviour
{Provide a screenshot or description of the expected behaviour}
Does your issue happen with every document, or just one?
Getting this issue with this pdf currently. I am getting an error in extracting the xfdf from it as well . PFA pdf Solais-ProductSheet-FP-Ge.pdf (1.7 MB) Link to document
{Provide a link to the document in question if possible}
I cannot reproduce this issue in 7.3.1. Can you please make sure you are using the latest version? Also in the future, please include your PDF.js Express version in your tickets. The version is logged to the console when Express is loaded.
Thanks for your help! I tried installing pdfjs express again to get the latest version using npm i @pdftron/pdfjs-express but still getting version 7.2.2 on my console log .
Please make sure that you delete all the old dependencies (including the ones that you moved into your “public” folder), and then install 7.3.1, and then move over your dependencies again (See part 2 of this guide.
I am not having an issue in loading the file on the viewer but I am getting these errors on my console. Also, I am not able to extract xfdf string using exportAnnotations api on this.
I can’t make Express throw that error message, and I can export annotations as expected.
I will need some more details about your set up in order to help you. Stuff like - what browser, how are you loading the document, any relevant code snippets, when does the error happen, etc.