Infinite loop of errors on free Viewer (annotations still clickable)

On the free viewer the right click menu is still showing annotation options, if you click any of them it will infinitely log a lot of errors to the console.

This is happening even in your demo, e.g. go to PDF.js Viewer Demo | PDF.js Express open the console, right click in the viewer somewhere, click any of the annotation buttons.

Hello jordan.holland,

Thank you for reporting this! It looks like this issue has been solved in the latest version of PDFJS Express, v8.6. The demo runs v8.2.

Best regards,
Tyler Gordon
Web Development Support Engineer
PDFTron

Hi Tyler, thanks for the reply that makes sense.

I’ve just checked NPM and the package for the free version hasn’t been updated to 8.6.0, however the paid version is up to date on NPM.

Thanks
Jordan

Hello jordan.holland,

We will be releasing v8.6 of the Viewer version in our next sprint, thank you for your patience.

Best regards,
Tyler Gordon
Web Development Support Engineer
PDFTron