PDF Command

In the program folder of the PDF Printer, you will find a program named pdfcmd.exe. This is a command line utility for printing documents to PDF.

The program can handle document merge and print operations.

Usage

PDFCMD command="merge|printpdf"

Additional parameters for merge operation
-----------------------------------------
output                  File name of output PDF.
input                   Input files to merge. Multiple input files must be
                        separated by a |.
timeout (optional)      Maximum timeout in seconds for the merge
                        to finish. The default is 60 seconds.
pdfprinter (optional)   Name of PDF printer used for the operation.

Example:
PDFCMD command=merge output="C:\temp\merged.pdf" input="C:\Temp\A.pdf|C:\Temp\B.pdf|C:\Temp\C.pdf"

Additional parameters for printing PDF documents
------------------------------------------------
input                   File name of PDF document to print.
pdfprinter (optional)   Name of PDF printer used for the operation.
printer (optional)      Name of the printer that should receive the print job.
firstpage (optional)    First page to print. Default is the first page.
lastpage (optional)     Last page to print. Default is the last page.
scaletofit (optional)   Scale output to fit (yes|no). Default is yes.
bpp (optional)          Bits per pixel. Valid values are 1, 4, 8, 24 (default).
docname (optional)      Document name in printer queue.
maxdpi (optional)       Maximum DPI resolution to print.
timeout (optional)      Maximum timeout in seconds for the print
                        to finish. The default is 60 seconds.

Example:
PDFCMD command=printpdf input="C:\Temp\A.pdf"

Limitations

Since the program rely on other applications to create the print jobs, it only supports file formats where the printing programs behave well. This may cause stability issues if you run this program in a server process. Some printing programs do not handle sessions without user interaction. This means that running the job from a server process can be a bit tricky. My recommendation is that you test the usage with types of documents that you wish to print.