Followinf is a skill on how to set pdf margin offset using command line. Using command line to set pdf margin offset is an easy method but adopted by only a few people, the reason might be that most people think it is complicated and time-consuming. To be honest, there is misunderstanding among them, if you master the following skill, using Advanced PDF Tools Command Line to set pdf margin offset proves to be easy and likes a piece of cake.
First, follow this link you will obtain this useful tool
https://www.verypdf.com/pdfinfoeditor/advanced_pdf_tools_cmd.zip.
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, you will have the MS-DOS command prompt window
Third, input the command to set pdf margin offset
it goes below
pdftools.exe -i “C:\input.pdf” -o “C:\output.pdf” –~“20,30”
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,
- the option -~“20.30”: -~ to edit margin offset, “20,30” the first parameter is x-offset and the next y-offset.
when the input is done, press “enter” key, you will see
Fourth, open the file to check, screenshots again
Picture 1
Picture 2
Picture 1 demonstrates the page before setting while Picture 2 after setting, pink color indicates the change of margin offset.