Hello,
thanks for looking at my code.
I have tested the code again (now it's adapted to v 8) and the critical time consuming part is clearly the method for converting to
thumbnail:
Code: Select all
Dim thumbId As Integer = pdfManaging.GetPageThumbnail(32, 32, color.White )
I have shared the workflow into 3 parts to find out what's slowing down.
1.) Loading the pdf document
2.) Creating the thumbnails of all pages and add them to a collection
3.) Go over this collection and fill my thumbnailview(= ListView in Thumbnailmode&ImageList)
The attached sample document results in the following times for these steps:
Step 1: < 100 ms
Step 2: ~15 sec
Step 3: ~ 1,5 sec.
Is this value in Step 2 the best I could expect for this sample document or do you see any optimization potencial?
What I will do for better performance is the implementation of multithreading, so the creation of thumbnails will be spread over multiple cores.
Of course I would rather use your very fast thumbnailEx-control instead of implementating a similar one by myself but the drag&drop and multipage functionallity isn't sufficient for our needs - unfortunately.
Kind regards
Tobias Herold