How to fit height and print PDF via command line?

VeryPDF PDFPrint Command Line is a must have desktop tool, which can help you print PDF files on any printer device that is accessible through the Windows operating system. You can also use it to drive virtual printers like docPrint and docPrint PDF Driverto save the result PDF files. VeryPDF PDFPrint Command Line is a stand-alone application, so it does not require any Adobe product installed in your computer. You can definitely use VeryPDF PDFPrint Command Line to fit height or change the height of a page,and print PDF via command line in a very convenient way.

When you plan to fit height and print PDF by the means of command line, the following commands must be included in the command line: -scalex <int> -scaley 0 (without square brackets)

This article will shed light on  how to fit height and print PDF via command line:

1. First you should run the command prompt in the following way: Click “Start” in the left down corner of the screen; > click “Run”; > enter cmd(without square brackets) in the “Run” dialog ; > press “OK” to close the “Run” dialog box and open the command prompt.


2. Enter a command line in the following pattern:

pdfprint.exe -scalex <int> -scaley 0 <PDF Files>

pdfprint.exe represents the executable file; -scalex <int>stands for x axis scale factors, and you can change the PDF page Height by changing the parameters following -scalex.  -scaley 0 will automatically scale the width of PDF page to fit the printer's paper size; <PDF Files> represents the PDF file you want to scale and print.

To be more specific, you can enter a command line as following in the prompt

D:\pdfprint_cmd\pdfprint.exe -scalex -1 –scaley 0 D:\top.pdf

D:\pdfprint_cmd\pdfprint.exe----the path leading to the executable file placed in the folder “pdfprint_cmd” on disk D.

scalex -1----the value of X axis is assigned to be -1. The change of the parameter may change the height of the PDF file printed on the printer. In addition, there are two numbers other than 0 having special meaning when you scale PDF pages: 100 stands for 100%, which means it will not scale the PDF file; -1  keeps the minimum constant scaling in both paper width and height.

scaley o----used to scale the width of PDF page to fit the printer's paper size. So, the parameter 0 following scaley is very important for you to fit the height of PDF file.

D:\top.pdf---- the selected PDF file is placed in the root folder “D:\”. Of course, if your PDF file is placed in another place and has another name, you can enter its whole directory instead of D:\top.pdf.

3. The last and simple step is to hit the key “Enter” on your keyboard. The printer device will begin to print PDF file as soon as it receive the message from the computer. If you want to download the free version of VeryPDF PDFPrint Command Line, or buy it, please visit: . If you want to learn more about paper definition for VeryPDF, please refer to this website.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Verify Code   If you cannot see the CheckCode image,please refresh the page again!