Append pdf pages to a pdf file using command line

With the 2011 Christmas Day already under way, people are making great efforts in finishing their work so as to give more time on celebrating this grant festival. If you get a lot of work related appending pdf pages in hand, how could you accomplish them before the Christmas? To help you finish the work in advance, the VeryPDF.com offers you a quick way to append pdf pages to a pdf file by using Advanced PDF Tools Command Line.

This article will use--- append pages specified by page range (/1, 2-4, 9) of pdf1.pdf to 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”

click start and then select run

2) input cmd into the following

Run dialog

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

 command prompt

Step 3 input command line to append 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 append pdf pages, 2 means source file’s page number, 0 means before.

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

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

progress displayed in command prompt

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

input pdf file

                          Picture 1

output pdf file

                               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 appended into the file, the new pages are indicated by circle, below are zoomed ones.

newly-appended pages

If you have questions, you can leave them below.

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!