Please enable JavaScript to view this site.

Navigation: Developer Information > Command Line Interface

Command Line PDF Print

Scroll Prev Top Next More

Print PDF Command Line Format

 

win2pdfd.exe printpdf "sourcefile" "printername"

win2pdfd.exe printpdf "sourcefile" "printername" startpage endpage

win2pdfd.exe printpdf "sourcefile" "printername" outputfile

win2pdfd.exe printpdf "sourcefile" "printername" trayname

win2pdfd.exe printpdfactualsize "sourcefile" "printername"

win2pdfd.exe printpdfactualsize "sourcefile" "printername" startpage endpage

win2pdfd.exe printpdfactualsize "sourcefile" "printername" outputfile

win2pdfd.exe printpdfactualsize "sourcefile" "printername" trayname

 

Prints the PDF “sourcefile” to the specified printername, optionally including a startpage and endpage, or tray name. The "printpdfactualsize" variation prints the PDF with no scaling ("actual size").  Otherwise, the PDF is scaled to the closes available paper size for the printer ("fit page").

 

Any file or printer 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.

 

If the "trayname" is specified, it must match one of the existing tray names for the printer ("Tray 1", "Upper", "Lower", "Manual", etc.). If the tray name contains spaces, it must be enclosed with quotation marks. If the specified tray is not available for the printer, the available tray names are printed on the command line console.

 

The command line option that includes an outputfile is useful for re-rendering an existing PDF through the Win2PDF printer. The full path to the file name must be specified.

 

If your printer supports Direct PDF printing, the Command Line PDF Print Direct command line may be faster.

 

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