Product Version: “@pdftron/webviewer”: “^10.0.0”
Please give a brief summary of your issue:
(Think of this as an email subject)
When selecting the second document in ‘multi-viewer mode’, the Notes Panel does not update to show the second documents annotations
Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
- Load two documents in WebViewer in multi-viewer mode.
- Select the document on the right hand side by clicking it.
- Anntote the right hand side document.
- Open the notes panel.
- The annotations for the right hand document does not show.
We don’t currently have this on our roadmap but, we will add it to the backlog for our product team to review for feasibility and viability.
We don’t have a timeline for when it will be fixed but if it does get fixed we’ll let you know when it’s available in an experimental build to test out and the estimated official release date. If you have a desired timeline for having this issue fixed please let us know and we’ll do our best to work with you on how this can fit into the release schedule.
Thanks for the response. Ideally having this fixed as soon as possible would be great, as we’re releasing the side by side view in a few weeks (but can work around this issue by disabling annotations on the right hand side document and explaining to the user), but consider this to be requirement for the feature (since the thumbnail panel, outlines and search all update when the right hand document is selected).
Just another question, is there a way via the SDK to get the actively selected document? I know you are able to grab all the document viewers using
Core.getDocumentViewers(), but I was wondering if there was a way to determine which one is active?
Currently we don’t have API to set which document is active. Can I know what case do you want to do.
Maybe here is a work around for you. You could just custom UI by your self. You could follow this guide to know how to do the customization. You need to do the similar function with this line to set which document is active.
The use case for this is if you want to apply some action to the selected viewer/active viewer, I think this is a pretty general use case.
We added a backlog for your issue. Please use the custom solution first, we will let you know when we make a solution for it.