Add pdf pages to a pdf file using command line

This function applies for adding separated pages of your pdf files into one your desired file so as to save more space and get more consummate file. This is not an easy task for you, don’t worry, Advanced PDF Tools Command Line is proficient in adding pdf pages. Now the rest part of this article is going to tell you how to add pdf pages to a pdf file using Advanced PDF Tools Command Line.

This article will add pages specified by page range (/1, 2-4, 9) of pdf1.pdf into test.pdf as example to illustrate.

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”

Snap2

2) input cmd into the following

Snap57

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

Snap1

Step 3 input command line to add pdf pages to a pdf file

it goes below

pdftools.exe  -i “C:\input.pdf” -o “C:\output.pdf” “-*” “2|0|d:\pdf1.pdf/1,2-4,9

where

  1. the option -i is to specify a pdf filename or a directory for input,
  2. the option -o is to specify the pdf file name for output,
  3. “-*” “2|0|d:\pdf1.pdf/1,2-4,9 :”-*” is to add pdf pages, 2 means source file’s page number, 0 means before.

so the command line can be paraphrased as insert pages specified by page range (/1,2-4,9) of  d:\pdf1.pdf and into C:\input.pdf  before second page.

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

Snap160

Step 4 open the file to check the effect if the new pages have been added, screenshots again

Snap163    

                             Picture 1

                  Snap161                        

               

                               Picture 2

Picture 1 shows the file before editing while Picture 2 shows after editing. Through the contrast, you are allowed to find the total 5 pages have been added into the file, the new pages are indicated by circle, below are zoomed ones.

Snap164

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!