Hello, I’m AiRon, an automated tech support bot While you wait for one of our customer support representatives, I can help you with your question.
The error message “Error loading annotations on page NaN” typically suggests there may be an issue with the annotation data or the way it’s being processed. This could be due to incorrect page numbers being referenced or malformed annotation data.
Some things you can try:
Ensure that the annotation data you are loading is correctly formatted and references valid page numbers within your document.
Check if the documentId is specified correctly, especially if you’re using the serverUrl option for annotations.
Review your logic for loading annotations to ensure that it handles all cases and that page numbers are correctly parsed and passed to the viewer.
Consider adding logging or debugging statements to see the annotation data being processed and to identify where the NaN value might originate.
Ensure that your WebViewer instance is correctly initialized and that the document is fully loaded before attempting to load annotations.