watchDirectory Help

Help Home
Creating New Tasks
Running Tasks
Task History

Plugins

Standard versus Pro
Version History

Search

See Also...




Free 30 day evaluation!
Standard version: $79 USD
Professional version: $149 USD
Buy Now!

 

German Helpfile

German Helpfile

French Helpfile

French Helpfile

Spanish Helpfile

Spanish Helpfile


Privacy Policy

Automatically Print PDF files

This script is started by watchDirectory to print PDF (Portable Document Format) files. When a new PDF file is detected in the monitored directory, watchDirectory starts this script to print it to the default printer.

What you need

The script uses Adobe® Acrobat® Reader to print the PDF file. If you do not have Acrobat Reader installed, download Acrobat Reader here.
The script has been tested with Acrobat Reader version 7.

Settings for this script

The upper half of the settings dialog contains general settings for all scripts that can be started by the Automatically run .bat files plugin. Please see that page for instructions.

OPTIONS - Options to pass to Acrobat Reader
The 2 default options (/p /h) cause Reader to print (/p) while not showing its main window (/h).

ACROCMD - Locate Acrobat Reader
Use the Browse button to locate Acrobat Reader. Find the file AcroRd32.exe, normally installed in
C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe

Now press next to Configure the Directory to MonitorNext

TIP - Printing to another printer

The script prints the PDF to the default printer. If you want to use another printer, you can use the DefPrint utility to change the default printer inside the script.

"%GDPUTIL%" -runkill 30 "%ACROCMD%" %OPTIONS% "%WD_FILE%"
C:\Bin\defprint /D "My Laser Printer"
"%GDPUTIL%" -runkill 30 "%ACROCMD%" %OPTIONS% "%WD_FILE%"
	

Adobe® and Acrobat®, are registered trademarks of Adobe.