Turn annotations off in plus?

Which product are you using?
Express - latest version

PDF.js Express Version

Detailed description of issue
I’m adding pdf.jsexpress plus to my product, but I want to release it without annotations first.

Currently I’m hiding the ribbons, and the toggle notes button… But I just realized right click also shows the annotation tools in the context menu popup.

Is there a way to simply disable annotations, or do I need to manually delete the items from the context menu popup too?

Thanks!

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Share how you are using PDF.js Express in your organization you could win a $500 Amazon gift card. All participants will receive 6 months of PDF.js Express+ for free. Learn more here

Hi Elliot,

Probably the easiest way to achieve this is to turn on setReadOnly(true) to disable all annotations.

https://pdfjs.express/api/Core.AnnotationManager.html#setReadOnly__anchor

Best Regards,
Zach Serviss
Web Development Support Engineer
PDFTron Systems, Inc.


Share how you are using PDF.js Express in your organization you could win a $500 Amazon gift card. All participants will receive 6 months of PDF.js Express+ for free. Learn more here

1 Like

Perfect, this is exactly what I wanted - thank you!