Friday, August 29, 2014

Split and merge pdf’s with pdftk in linux

Link.


Pdf Tolkit (pdftk) is a tool to split and merge the pdf’s.

First you need to install the pdftk with following command.
$ sudo apt-get install pdftk

An example to merge pdf’s
$ pdftk input1.pdf input2.pdf cat output merge-output.pdf

Above example is to merge input1.pdf and input2.pdf and create new output file with name merge-output.pdf

An example to split pdf(split from page 10 to 20)
$ pdftk A=input1.pdf cat A10-20 outpout split-output.pdf

Above example is to get only page number 10 to 20 from input1.pdf to split-output.pdf

No comments:

Post a Comment