Do you have an issue with a specific file(s)?
Can you reproduce using one of our samples or online demos?
Are you using the WebViewer server?
Does the issue only happen on certain browsers?
Is your issue related to a front-end framework?
Is your issue related to annotations?
Please give a brief summary of your issue:
(Think of this as an email subject)
How to apply Reductions before display the document
Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
Dear WebViewer Support Staff:
This is Asahi Hayakawa from FUJIFILM SOFTWARE Co., Ltd.
We are developing an online proofing service using PDFTron SDK,
and the requirement is to hide the specified area before display the whole document on screen for security.
We tried to use the reduction as the following, however all of these seems to have some problems:
call 「viewerInstance.Core.annotationManager.applyRedactions」method in the 「documentLoaded」 event
For pdf with a lot of pages, it seems that the page rendering is interfered by the redaction. As a result the blank pages are shown.
call 「viewerInstance.Core.annotationManager.applyRedactions」method in the 「annotationLoaded」 event
It seems work this time but applyRedactions deletes the annotations overlapped with redaction annotations. We tried to redraw these annotations since it is necessary for users but it is not work. However, the redraw logic works perfectly when I did the same coding in documentLoaded event.
call 「viewerInstance.Core.annotationManager.applyRedactions」method in the 「annotationLoaded」 event and redraw the annotations in 「documentLoaded」 event
Unfortunatly the area need to be hidden shows serval seconds when the pdf is large.
Can you help me about the problem?
if you need any further information please reply.
Thank you very much.
Please provide a link to a minimal sample where the issue is reproducible: