Edit pdf page margins of the first page using command line

The first page to pdf files is the face to people, so it is crucial and important. Page margin plays a important role, your top task is to make it more pleasant to look in appearance and more comfortable to view in content. With the help of Advanced PDF Tools Command Line, you are able to edit pdf page margins of the first page in brief manner.

First, follow this link you will obtain Advanced PDF Tools


do remember to extract it, for it is a zipped package.

Second, launch the MS-DOS command prompt window

steps are as follows:

start the dialog box of “cmd.exe”: press  “start”>choose “Run”>input “cmd”>press “ok”



when the following appears, it tells you already have the MS-DOS command prompt window


Third, input the command to edit pdf page margins of the first page

it goes below

pdftools.exe -i “C:\input.pdf” -o “C:\output.pdf” -# “30” –u “1”


  1. the option -i is to specify a pdf filename or a directory for input,
  2. the option -o to specify the pdf file name for output,
  3. -# “30”: –#  to edit margin and “30” refers to set the page margin 30 pt that could be substituted according to your needs,
  4. –u “1”: –u is to specify pages and “1”  refers to the first page.


Usually there are three size unit such as point (pt), inch (in), millimeter (mm). Point size can be converted to inch like point/72=inch, and point to millimeter like point/72*25.4=millimeter. For example, the 595.5pt can be 8.27in or 210.06mm by calculating as:



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


Fourth, open the files to check

screenshots again



The two pictures are same one to show the effect about the change of pdf page margins of the first page. To make you see clearly the below picture is colored in the page margin.

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!