How To Merge Or Dissever Pdf Files Using Convert

convert is a fellow member of the ImageMagick software suite for icon manipulation. Two of my before posts dealt amongst using convert to slice together with resize an image. It is a lesser-known fact that convert also industrial plant amongst pdf files. I'd previously explained how to merge together with split up pdf files using tools such equally pdftk together with gs. In this post, I'll illustrate how to produce the same using the convert program.

First, you lot require to install convert which is packaged inwards the ImageMagick suite.

$ sudo apt-get install imagemagick

Merging two pdf files (file1 together with file2) into a novel file (output) is equally uncomplicated equally executing:

$ convert file1.pdf file2.pdf output.pdf

You tin merge a subset of pages instead of the entire input files. To make that, purpose the angle brackets to specify the target subset of pages. For example, to merge page one of file1 amongst pages 1, two together with four of file2, run the next command:

$ convert file1.pdf[0] file2.pdf[0-1,3] output.pdf

Note that page numbers are zero-based. Therefore, [0] is page 1, together with [0-1] are the pages ranging from page one to page 2.

Finally, the next instance splits upwardly input into two files: first2output together with next2output. The sometime output file contains pages one together with two from the master file; the latter, pages three together with 4.

$ convert input.pdf[0-1] first2output.pdf
$ convert input.pdf[2-3] next2output.pdf

As you lot tin see, convert is a versatile utility plan to manipulate both icon together with pdf files.

Berlangganan update artikel terbaru via email:

0 Response to "How To Merge Or Dissever Pdf Files Using Convert"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel