We have a pdf document and are trying to convert each page to a png thumbnail. I have used the code specified here:
I have specified an additional property to create thumbnail images of 300 x 300 pixels.
There are two problems that we are seeing:
The pdfDocument.Pages.Count has a value of 100 for our 100 page pdf document. However, an index out of range exception is thrown when attempting to access page 6 (index 5) as the pdfDocument.Pages collection only contains 5 items.
On a well spec’d development machine the first page takes 6.4 seconds to generate. The second page takes 3.6, third takes 3.7 and the forth takes 3.6 seconds. Is there anything that can be done to improve the speed at which these thumbnails are rendered?