Combine some pdfs into one

This started by downloading some e-books from our national education government sites which consists of e-books of some subjects which parted into chapters.
I was just thinking that “could they just be combined into one file only ?”

Based on this article, i got my answer : we can !!

First, download some files from terminal by typing ;

  • sudo apt-get install gs pdftk

Second, execute those pdfs

  • gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combinedpdf.pdf -dBATCH 1.pdf 2.pdf 3.pdf

Which OUTPUTFILE=the name of combination file
1.pdf 2.pdf 3.pdf are the name of the partial pdfs

After you run the above command, a new PDF file called combinedpdf.pdf will be created with your individual files merged according to the order that you have you listed.

regards;
~E~

Advertisements

Leave a comment

No comments yet.

Comments RSS TrackBack Identifier URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s