It seems to me that even though I define the page counts to be converted, it is very slow on a multi page document. It looks at though it converts the whole thing and then return just the page I want. Is it not possible to just convert the page I request? Is there something else I need to do to speed up the extraction of a single page to jpg? I am using version 4.1 of the aspose.pdf.kit dll
I would like to share with you that you need to add pdfConverter.DoConvert() method after setting start and end pages. Moreover, can you please download the latest version and try it at your end? If you still find the same issue then please share the input PDF file with us, so we could test the issue at our end and see if the performance can be further improved. I would also like to add that most of the time such kind of issues depend upon the particular structure or contents of the PDF file, that’s why a sample file would be helpful.
Also, I noticed that it was much faster when i first extracted the page i wanted then converted. So, this kind of tells me that the convert is not being specific enough it would seem when the pages are specified. (still need to get back to you on some points).
I would like to inform you that DoConvert method performs some initialization tasks before conversion of pages to images. Some pages might be converted fine, however due to the variety of content types in a PDF file it is recommended to use the DoConvert method.
Moreover, please share the PDF file once it is available, so we could test the issue in detail at our end.
I have tried the latest dll 4.5 and find that it is still taking approx 20 seconds just to get one page of the document to load as a jpg. I think 20 seconds to convert one of the page seems a bit long. Not really useable at this rate.
I have tested this file at my end and noticed the same situation. I have logged this issue as PDFKITNET-17759 in our issue tracking system for further investigation. Our team will look into this issue to see if the conversion speed can be further improved. You’ll be updated via this forum thread accordingly.
I would like to share with you that the conversion speed and performance relies on the type of the contents in the PDF file and the structure of the file itself. So, the files with simple structure and light contents would take less time than the ones with complex structure and content types.
I would also like to add that our team keeps improving the performance for the variety of structures and content types; the issue for this file is also logged already, and our team is working on this issue. We’ll update you once it is resolved.
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Source Error:
Line 68: PdfConverter pdfConverter = new PdfConverter();
Line 69:
Line 70: pdfConverter.BindPdf("c:\\temp\\aspose47.pdf");
Line 71:
Can you help out with this asap? I'm excited to try the new "fix".
I have tested this issue on Windows 7/IIS, but couldn’t notice any problem. It looks like you’re having this issue because of insufficient permissions on the folder containing PDF file. Please assign appropriate permissions, on this folder, to the user your application is running under.
If you have any further questions, please do let us know. Regards,