WidgetAnnotaion doesn't load in multi-page PDFs

We add a WidgetAnnotation code-side on the PDF and then change the color of the widget. For a one-page PDF, everything works as expected.

For more than one page, the widget does not load. Only when you click or scroll into the widget, it is recognized and the color is adjusted.

Hi there,

Thanks you contacting pdf.js express forums,

Could you please try calling annotationManager.redrawAnnotation as in the guide here:
Customize PDF.js Express Viewer Annotations in Toolbar | Documentation (bottom code block)

If issue persists, could you please share your code sample.

Best regards,
Kevin Kim