Page 1 of 1

PdfAnnotationTool AnnotationViewCollection Caching

Posted: Tue Nov 23, 2021 3:08 am
by IntegraMike
I'm trying to solve an issue where transitioning between pages is slow when a decent number of annotations (or most often form fields) are on both pages. I believe this slowness is in adding the relevant AnnotationViews to the AnnotationViewCollection in the tool since that is only tracking the focused page. We're using this with an ImageViewer in SingleContinuousColumn mode. When scrolling this can be a fairly significant lag period, and also has the unfortunate effect of hiding annotations at the bottom of the first page from view while focus is on the second page. Is there anything we can do about this? I can't see any settings to cache multiple pages at a time or populate annotations on a background thread, etc. and it currently can cause a noticeable lag in the application we're trying to mitigate.

Thanks for anything you can provide!

Re: PdfAnnotationTool AnnotationViewCollection Caching

Posted: Tue Nov 23, 2021 11:53 am
by Alex
Hello Mike,

How many annotations do you have on a PDF page? 10, 50, 100, 1000?
Do you have WPF or WinForms viewer? In WPF viewer SDK creates WPF object for each annotation.

Please send us (to support@vintasoft.com) a project, which demonstrates the problem, we will debug application and try to improve the performance.
If you cannot send us a project, please send us a step-by-step guide, which allows to reproduce the problem using our demos.

Best regards, Alexander

Re: PdfAnnotationTool AnnotationViewCollection Caching

Posted: Wed Dec 01, 2021 12:08 am
by IntegraMike
Sorry it took as long as it did to get something sent your way. Demo has been sent as of today!

Re: PdfAnnotationTool AnnotationViewCollection Caching

Posted: Fri Dec 03, 2021 12:39 pm
by Alex
Hello Mike,

Thank you for the project, we reproduced and fixed the problem.

In version 10.1.15.1 we have increased performance of algorithm, which creates view for PDF text field annotation, and now viewer works without slowness in your application. Please use version 10.1.15.1 and let me know if you will have any question or problem.

Best regards, Alexander