Set margins of specified pdf pages using command line

If you print pdf files by yourself, more often than not, you will fret with specified page margin problem. If there is little margin, the information in it will be lost when the pages are printed, if there is large part of margin, the paper will be wasted. Therefore, setting margins of specified pdf pages becomes essential to ensure intact information. How about using a tool to help you and with its help, the specified page margin problem will be readily resolved. The tool is Advanced PDF Tools Command Line.

Following the below steps, you will not only possess this useful tool but also know how to use it.

Step 1 click the following link to download Advanced PDF Tools

https://www.verypdf.com/pdfinfoeditor/advanced_pdf_tools_cmd.zip

please unpack it when download is finished.

Step 2 launch the MS-DOS command prompt window. Because the command line is bound to be operated under the MS-DOS environment. The procedure is easy, and the following pictures will guide you.

1) click “start” and then go to “Run”

Snap88

2) input cmd into the following

Snap57

3) press “ok”, you will find MS-DOS command prompt window propping up

Snap1

Step 3 input command line to set margins of specified pdf pages

before the edit, you can see below page, its margin is little

Snap241                                                         before edit

now, you can input command to set it to make sure information in it is complete

pdftools -i “C:\input.pdf” -o “C:\output.pdf” -# “30” –u “1,5,7,12”

where the option -i is to specify a pdf filename or a directory for input, the option -o to specify the pdf file name for output, –# to edit margin and –u is to specify pages. “30” refers to set the page margin 30 pt while “1,5,7,12”  refers to specified pages, surely you can use other numbers to substitute.

when the input is done, press “enter” key and you will see

Snap242

now you can open the output.pdf to check its result

Snap243

                                     after edit

you also can check other specified pages their margin have been set according to the command.

If you have further questions about pdf files as well as their setting, you are welcome to visit at www.verypdf.com.

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!