Quantcast
Channel: Recent Discussions on pdfforge Forums
Viewing all articles
Browse latest Browse all 10270

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

$
0
0

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?

 


Viewing all articles
Browse latest Browse all 10270

Trending Articles