Open Inetsis opened 4 years ago
@Inetsis this is already possible.
To disable annotations and popups set add following option to the options object
modules: []
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 I have already try to set a empty array to modules with options, and it don't work I finally find a solution doing this :
this.viewer.viewerCanvas.viewLayers.splice(2, 2);
It remove AnnotationSelectionLayer and TextSelectionLayer It's quite bad, but is the one way i found ...
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. I'have already a support, I'm wokring with Didier Leclerc in ProSoftTools team, I have already contacted "Feride" with mail, he gave me the github url.
Can you add a 'read only' mode ?