Please enable JavaScript to view this site.

Navigation: Developer Information > Command Line Interface

Command Line PDF Print Direct

Scroll Prev Top Next More

Print PDF Direct Command Line Format

 

win2pdfd.exe printpdfdirect "sourcefile" printername

win2pdfd.exe printpdfdirect "sourcefile" printername startpage endpage

 

Prints the PDF “sourcefile” directly to the specified “printername” that supports Direct PDF printing, optionally including a startpage, and endpage.

 

Compared to the Command Line PDF Print, this can be much faster but only works on printers with "Direct PDF" printing. Most business class printers from HP, OKI,  Kyocera, Ricoh, Canon, and Xerox support Direct PDF printing, but most consumer inkjet printers do not support it. If the “pdfprintdirect” command is used on a printer that does not support Direct PDF printing, it may result in many pages of garbled text being printed.

 

Any file names that contain spaces must be enclosed with quotation marks. The "sourcefile" can be a local file path, or an web address (URL) to an existing PDF.

 

Returns 0 on success, and a Windows system error code on failure.