WatchDirectory Forum | |
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> Bug Reports >> PDF Print Jobs http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1154624702 Message started by Dean on Aug 3rd, 2006 at 7:05pm |
Title: PDF Print Jobs Post by Dean on Aug 3rd, 2006 at 7: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. |
Title: Re: PDF Print Jobs Post by Gert on Aug 4th, 2006 at 5: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 [/code] 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 |
WatchDirectory Forum » Powered by YaBB 2.5.2! YaBB Forum Software © 2000-2018. All Rights Reserved. |