Increase the speed of converting PDF to JPG files


#1

PDFForge,

it is taking approx 1 min 05 sec to convert from a pdf to a
jpg. Is there anyway to increase the time for this? I checked
with the Cloud vendor and he increased the size of the space I
had and stated the processor was running at 30%. They told me
to check with the vendor of the product. Thanx in advance and
I look forward to hearing back.
We are running PDF Creator Terminal Server and HotFolder
in the Cloud.

Jerry


#2

Hi Jerry,

since HotFolder prints the files to the virtual PDFCreator printer in order to convert them to jpg, the actual spooling/printing is most likely the bottleneck here. PDFCreator can directly convert PDF input without any printing, but the HotFolder doesn’t support this (yet). For now, replacing HotFolder with a script which monitors a folder and then calls PDFCreator /PdfFile=“file put into the folder.pdf” /OutputFile=“path to your image.jpg” /Profile=“name of your current HotFolder profile”. If you only have 1 profile/workflow, you can leave out the /Profile parameter and set the required settings inside the default PDFCreator profile.
There is also already a ticket in our tracker to have HotFolder directly convert PDF input instead of printing it, but it could still take a while until this gets implemented.

Best regards

Robin


#3

Robin,

This sounds great. When doing this, are you still limited to 3 printer profiles? Do
have you documentation for doing this? I look forward to hearing back. Thanx in
advance.

Jerry


#4

Hi Jerry,

the command line parameters required for doing this are documented here:
http://docs.pdfforge.org/pdfcreator/3.2/en/pdfcreator/using-pdfcreator/command-line-parameters/
We don’t have any documentaion for the script part, but this can be done with a programming language of your choice and will only require some basic coding effort. If it helps, I can look up how HotFolder monitors the folders, but I guess there are many different ways to do this and it might be better to use a different way, if performance is the main factor (e.g. not check for new files every second but only every minute).
You shouldn’t be limited to 3 printer profiles in any case, please describe the current limitation (there shouldn’t be any). You can generally create any number of PDFCreator printers and profiles, but the conversion will always be done in a single thread.

Best regards

Robin


#5

Robin,

I just did a drag & drop using PDFCreator and it converted 41 files in 2.5 minutes. This is much better that sending them through HotFolder. I will work on creating a batch job to monitor the folder and then build the names to convert and send them through PDFCreator. Thanx for the input.

Jerry


#6

Robin,

When went to close PDFCreator, I got many messages for PDFCreator errors. I sent the error message and I got this before. Since the files looked okay, I sent them before but never said anything. Can you plz review and let me know if there are really errors I need to be concerned with? Thanx in advance.


#7

Jerry,

I will gladly look int this, but will need to know the exact error messages to be able to help.
Best set the logging level to trace inside the PDFCreator application settings and send us the log the next time you get any errors, then we should have all the details needed to fix the issue.

Best regards

Robin


#8

Here is the error report and the trace file. I cannot upload the documents. How can I send them to you.


#9

sending them as text files
PDFCreator_Trace.txt (493.9 KB)


#10

Hi,

thanks for the logs (I deleted the error report from the post as it contained your license key).
There aren’t any errors inside the trace log, it does look like everything is ok.
TaskCanceledException sounds like it could be caused by rebooting the machine while PDFCreator is still processing jobs, but I will need to check with the rest of the team to be sure. Do you think it could be caused by reboots or did you manually shut the PDFCreator window while it was still processing files (this shouldn’t throw an exception though). The error seems to occur on shutdown, after everything has been processed.
Did all PNGs get created? Do you get the error once or multiple times during a single batch job and is it reproducible (do you get it again if you drag&drop the same 41 files onto PDFCreator again)?

Best regards

Robin


#11

It seems the issue might be caused by a problem with the .NET installation on the machine, as it seems to take place outside of our actual code. Basically it looks like it is shutting down when it is supposed to shutdown, but then runs into some error beyond our control.


#12

All of the jpg’s were created fine. It happens when I close the program only. It is only produced when I shutdown the PDF Creator program.


#13

I will try to reproduce the issue here based on this additional information, but the issue could be related to the individual system’s configuration. It shouldn’t cause any problems, as all of our shutdown code seems to be handled before the exception is thrown.


#14

It seems this is somehow caused by the May updates for Windows/.NET. Before May, there were 0 of these errors sent to us via error reports. Now there are 15000…
We are now trying to find out if a bug was introduced into .NET, or if there is an issue with a PDFCreator code which didn’t cause any problems before but was made noticeable by the update.