WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
   
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
PDF Print Jobs (Read 2954 times)
Dean
YaBB Newbies
*
Offline



Posts: 1
PDF Print Jobs
Aug 3rd, 2006 at 6:05pm
 
Hi,
I used the PDF template to print PDF files as they're copied to a folder.  Print jobs for larger files stop short before all pages are printed.  I tried changing the GDUtil runkill command to 60 seconds but the problem still persists.

Should I increase the seconds to a higher number?  I'm afraid making it higher will increase the time it takes to print each file.

Any suggestions?

Thanks.
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2381
The Netherlands
Re: PDF Print Jobs
Reply #1 - Aug 4th, 2006 at 4:56am
 
Hello Dean,

What you can do is leave the setting on 60 seconds and only increase it for large PDF files. To implement this:
Open <task directory>\<task name>\wd.bat using a text editor
(<task directory> - press CTRL+9 to explore this directory, <task name> - the name you gave the task)

Just before the command that starts GdPUtil/Acrobat add a few lines of code that set the timeout depending on the filesize:
Code:
SET TIMEOUT=60
IF %WD_FILE_SIZE_KB% GEQ 1024 SET TIMEOUT=300
"%GDPUTIL%" -runkill %TIMEOUT% "%ACROCMD%" %OPTIONS% "%WD_FILE%"
%ANNOTATE% Info done
 


The code above uses a timeout of 5 minutes (300 seconds) for PDF files that are greater than 1024 KB, and a timeout of 60 seconds for smaller files.

Hope this helps,
Gert
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Page Index Toggle Pages: 1