PdfAnnotationTool AnnotationViewCollection Caching

Questions, comments and suggestions concerning VintaSoft PDF .NET Plug-in.

Moderator: Alex

Post Reply
IntegraMike
Posts: 56
Joined: Mon Dec 02, 2019 11:19 pm

PdfAnnotationTool AnnotationViewCollection Caching

Post 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!
Alex
Site Admin
Posts: 2045
Joined: Thu Jul 10, 2008 2:21 pm

Re: PdfAnnotationTool AnnotationViewCollection Caching

Post 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
IntegraMike
Posts: 56
Joined: Mon Dec 02, 2019 11:19 pm

Re: PdfAnnotationTool AnnotationViewCollection Caching

Post by IntegraMike »

Sorry it took as long as it did to get something sent your way. Demo has been sent as of today!
Alex
Site Admin
Posts: 2045
Joined: Thu Jul 10, 2008 2:21 pm

Re: PdfAnnotationTool AnnotationViewCollection Caching

Post 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
Post Reply