This article aims at showing how to print PDF document by command line and set the scale options to created PDF document. The application that you can have a try is VeryPDF PDFPrint Command Line. To meet your requirements, please go on reading the contents below.
VeryPDF PDFPrint Command Line is able to print PDF document to printers or virtual printers and then set different kinds of parameters to the printers. The created file format is controlled by the default printer on your computer. If you want to print out PDF document, please use the printer which is able to create PDF document. If you don’t have one, you are recommended to use VeryPDF Document Printer (docPrint) which is installed as a virtual printer.
The command line template that you need to refer to is
pdfprint.exe [options] [Options] <PDF Files>
The options that you need to scale PDF document are
-scalex <int>: X axis scale factors, default is 100
100 : do not scale PDF page
0 : scale the width of PDF page to fit the printer's paper size
-1 : keep the minimum constant scaling in both paper width and height
-scaley <int>: Y axis scale factors, default is 100
100 : do not scale PDF page
0 : scale the height of PDF page to fit the printer's paper size
-1 : keep the minimum constant scaling in both paper width and height
If you have set a default printer which is able to create PDF document in advance, you can use the following examples to meet your needs.
pdfprint.exe -scalex 50 -scaley 50 C:\input.pdf
pdfprint.exe -scalex 0 -scaley 0 C:\input.pdf
pdfprint.exe -scalex -1 -scaley -1 C:\input.pdf
If you don’t want to set the default printer, you will need the option –printer<printer name> to specify the called printer. Please see the following example:
pdfprint.exe –printer “docPrint” -scalex 50 -scaley 50 C:\input.pdf
Now are you interested in this command line application? If so, welcome click the following link to download the free trial version to experience it.