Error: [Error] pdfforge.PDFCreator.App.App_OnStartup: The file "....." could not be printed!

Description of process with the issue
The object is to convert 2 pdf files to jpg using a batch file.
By starting convertpdf2jpg.bat the conversion is started for file1.pdf
After conversion to jpg has finished, the batch file move.bat is called by PDFCreator, which moves the jpg to directory “\\converted\\” and pdf to the directory “\\processed\\”.

This all works fine, however, between the end of the conversion of file1.pdf and the start of conversion for file2.pdf there is a very long pause (60 seconds), which of course drastically decreases performance when mass processing files.

Investigation learned, that: The file "D:\\temp\\file1.pdf" could not be printed!

The two main messages in the log are:
pdfforge.PDFCreator.Workflow.ConversionWorkflow.DoWorkflowWork: Converting D:\\Temp\\file1.jpg
2015-01-13 12:15:51.4737 [Warn] pdfforge.PDFCreator.PrintFile.PrintCommand.Print: Process was not finishing after 60 seconds, killing it now...
2015-01-13 12:15:51.4737 [Error] pdfforge.PDFCreator.App.App_OnStartup: The file "D:\\temp\\file1.pdf" could not be printed!

Configuration
PDFCreator 2.0.1.714
Print profile to create auto-save jpg at 600 dpi

Content of batch file convertpdf2jpg.bat
@echo off
*** Set variables ***
set conversioncommand="C:\\Program Files\\PDFCreator\\pdfcreator.exe"
set param1= /printfile=
set sourcepath=%~dp0
set targetpath=%sourcepath%\\converted\\
set processedpath=%sourcepath%\\processed\\

set myfilename=file1.pdf
cls
echo Starting conversion...
echo Converting: %myfilename%
rem *** Convert pdf to jpg
echo %conversioncommand%%param1%%sourcepath%%myfilename%
%conversioncommand%%param1%%sourcepath%%myfilename%
echo Conversion of %myfilename% completed
set myfilename=file2.pdf
echo Converting: %myfilename%
rem *** Convert pdf to jpg
echo %conversioncommand%%param1%%sourcepath%%myfilename%
%conversioncommand%%param1%%sourcepath%%myfilename%
echo Conversion of %myfilename% completed
timeout /T -1

Content of move.bat
@echo off
set sourcepath=%~dp0
set targetpath=%sourcepath%\\converted\\
set processedpath=%sourcepath%\\processed\\
cls
move /y %sourcepath%%1 %targetpath%
move /y %sourcepath%%2.pdf %processedpath%%2.pdf

Directories & files:
D:\\temp\\
D:\\temp\\converted\\
D:\\temp\\processed\\
D:\\temp\\convertpdf2jpg.bat
D:\\temp\\move.bat
D:\\temp\\File1.pdf
D:\\temp\\File2.pdf

Can you please look into this error?

 

Upgraded to PDFCreator 2.0.2

Issue still exists.

Content of batch file:

pdfcreator.exe /printfile=D:\\Temp\\File1.pdf
pdfcreator.exe /printfile=D:\\Temp\\File2.pdf

 

Log:

2015-01-30 15:00:28.2118 [Info] pdfforge.PDFCreator.App.App_OnStartup: Launched printjob with PrintFile command.
2015-01-30 15:00:29.8030 [Info] pdfforge.PDFCreator.App.App_OnStartup: Launched PDFCreator with InfoDataFile parameter.
2015-01-30 15:00:29.8498 [Info] pdfforge.PDFCreator.App.App_OnStartup: Command Line parameters: /INFODATAFILE=C:\\Users\\sandman\\AppData\\Local\\Temp\\PDFCreator\\Spool\\19118635960B471B816E45236089AF43.inf
2015-01-30 15:00:30.0370 [Info] pdfforge.PDFCreator.Workflow.ConversionWorkflow.DoWorkflowWork: Converting D:\\Temp\\file1.jpg
2015-01-30 15:01:28.3031 [Warn] pdfforge.PDFCreator.PrintFile.PrintCommand.Print: Process was not finishing after 60 seconds, killing it now...
2015-01-30 15:01:28.3031 [Error] pdfforge.PDFCreator.App.App_OnStartup: The file "D:\\Temp\\File1.pdf" could not be printed!
2015-01-30 15:01:28.8491 [Info] pdfforge.PDFCreator.App.App_OnStartup: Launched printjob with PrintFile command.
2015-01-30 15:01:30.4247 [Info] pdfforge.PDFCreator.App.App_OnStartup: Launched PDFCreator with InfoDataFile parameter.
2015-01-30 15:01:30.4559 [Info] pdfforge.PDFCreator.App.App_OnStartup: Command Line parameters: /INFODATAFILE=C:\\Users\\sandman\\AppData\\Local\\Temp\\PDFCreator\\Spool\\50E58290FF3540369F5B2A7250221C2D.inf
2015-01-30 15:01:30.6743 [Info] pdfforge.PDFCreator.Workflow.ConversionWorkflow.DoWorkflowWork: Converting D:\\Temp\\file2.jpg
2015-01-30 15:02:28.9560 [Warn] pdfforge.PDFCreator.PrintFile.PrintCommand.Print: Process was not finishing after 60 seconds, killing it now...
2015-01-30 15:02:28.9560 [Error] pdfforge.PDFCreator.App.App_OnStartup: The file "D:\\Temp\\File2.pdf" could not be printed!

Can you please look into this error?

Just to be clear: The conversion from pdf to jpg is successful.

The time (60 seconds) between the conversions is the problem. It makes PDFCreator unsuitable for bulk conversion.

Looking forward to a fix.

Kind regards,

Sandman

Hi,


does this happen every time/for any PDF?

best regards,

Hi Robin,
I've reproduced it on my computer several times, so the answer to your first question would be: yes.
I've used 2 different PDF files containing 1 page with text and images.
Are you able to reproduce the issue?
Kind regards,
Sandman

Hi Robin,
Any update?
Are you able to reproduce the issue?
Kind regards,
Sandman

Hi Sandman,


a possible cause could be your viewer doesn’t automatically close and reopen to print the second document. If you are using Adobe Reader, this is the case. Please try using SumatraPDF instead, perhaps it is even neccessary to use Sumatras silent printing option for this.

best regards,

Robin