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!
PdfAnnotationTool AnnotationViewCollection Caching
Moderator: Alex
-
- Posts: 56
- Joined: Mon Dec 02, 2019 11:19 pm
-
- Site Admin
- Posts: 2397
- Joined: Thu Jul 10, 2008 2:21 pm
Re: PdfAnnotationTool AnnotationViewCollection Caching
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
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
-
- Posts: 56
- Joined: Mon Dec 02, 2019 11:19 pm
Re: PdfAnnotationTool AnnotationViewCollection Caching
Sorry it took as long as it did to get something sent your way. Demo has been sent as of today!
-
- Site Admin
- Posts: 2397
- Joined: Thu Jul 10, 2008 2:21 pm
Re: PdfAnnotationTool AnnotationViewCollection Caching
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
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