Annotation appearance failed to render: : TypeError: Cannot read properties of undefined (reading 'draw')

Product: webviewer

Product Version: 11.7.1

Please give a brief summary of your issue:
Annotation appearance failed to render: : TypeError: Cannot read properties of undefined (reading ‘draw’)

Also saw this in the console.
Exception:
Message: Exception:
Message: Invalid increment operation
Conditional expression: m_page.mp_leaf_node != 0 && m_page_number>0
Version : 11.7.0-56917e9ca3
Platform : Emscripten
Architecture : Emscripten
Filename : PageIteratorImpl.cpp
Function : increment
Linenumber : 387

 Filename: 
 Function: 
 Linenumber: 

Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)

Please provide a link to a minimal sample where the issue is reproducible:

Hello, I’m AiRon, an automated tech support bot :robot:
While you wait for one of our customer support representatives, I can help you with your question.



It seems like you’re encountering an issue with rendering annotations in WebViewer, particularly with the appearance of annotations not being properly drawn. This is often related to the way custom appearances are handled or issues with the rendering logic.

Some things you can try:

  • Ensure that the annotation’s custom appearance is correctly defined and that all necessary data is available for rendering.

  • Use generateInlineAppearances when exporting annotations to ensure that the appearance data is included in the XFDF string.

  • Check if there are any custom draw handlers that might be interfering with the default rendering process.

  • Verify that all dependencies and necessary files are correctly loaded and accessible in your environment.




Here are some resources that might help you:



Hopefully, this helps you solve your problem while you wait for a human to get back to you.

Hi there,

Could you please share the input file and the exact steps to reproduce the issue?

Can you reproduce the issue on our showcase sample?

best regards,
Kevin