Performance Issues On Annotation Draw

WebViewer Version: “^8.10.0-20221122”

We have upload 10 page pdf and on 1st page its 2000+ annotation ,After that if we are drawing any annotation so Its very leggy and take more time to create annotation ,but on other pages (Like:, Without Annotations pages) its work fine.

How can we prevent this Performance issues?

Thanks :slight_smile:

Hello,

Since annotation rendering occurs on the client-side, you can improve performance by increasing the processing power on the client.

There are a few workarounds, such as hiding certain annotations depending on the user or just flattening the document at certain points in time. However, flattening will cause annotations to get flattened as well.

You can also try playing with Canvas smoothing: CanvasRenderingContext2D.imageSmoothingQuality - Web APIs | MDN. However, I am not sure how that will affect your case of 2000+ annotations on a single page.