-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Readonly mode #4
Comments
@Inetsis this is already possible. To disable annotations and popups set add following option to the options object PdfWebViewerTS/src/examples/pdf-web-viewer/index.ts Lines 48 to 56 in e72cdae
Since annotations and popup are modules they can be disabled by explicitly removing them from the modules list of the options. Saving can also be disabled via options (allowSaveFile: false). But I like the idea of an encompassing read-only option, I will bring this up with the team. |
Hello Thanks for your reply
It remove AnnotationSelectionLayer and TextSelectionLayer Looking forward to reading you |
If you say it doesn't work - what doesn't work? The viewer fails to instantiate or it's not the read only mode you want? Btw, to be eligible for support during evaluation can you please register an account on www.pdf-tools.com? |
If I set a empty array on modules options, the viewer start with all modules as if I done nothing. |
Can you add a 'read only' mode ?
The text was updated successfully, but these errors were encountered: