JSI Tip 7581. How do I print a .PDF document from the command-line?
Jerold Schulman
December 17, 2003
1 Min Read
To print an Adobe Portable Document Format (PDF) file, you need Adobe Acrobat.
The syntax for printing a .PDF document from the command-line is:
PathToAcrobat.exe /t Filename Printer PrintDriver PrinterPort
where:
PathToAcrobat.exe | is the path to Acrobat.exe or Acrord32.exe. |
---|---|
/t | prints the document and is supposed to terminate. |
Filename | is the path to the .PDF document you wish to print. |
Printer | is the name of the printer you want the document to print on. |
PrinterDriver | from the printer's Properties page. |
PrinterPort | The printer's port, which cannot contain any / characters. |
Example:
"C:Program FilesAdobeAcrobat 5.0AcrobatAcrobat.exe" /t "C:SavedProtect_Your_PC.pdf" \JSI001HP2250 "HP Business Inkjet 2250 (PCL5C)" LPT1:
About the Author
Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
You May Also Like