Friday, March 20, 2015

bash merge multiple pdf files

A) Using mutool

apt-get install mupdf-tools
mutool merge [options] file1 [pages] file2 [pages] ...

Options:

-o output
The output filename.
-O options
See mutool create for details on this option. 
 
Source: https://mupdf.com/docs/manual-mutool-merge.html
  

B) Using pdfunite. If needed, install poppler package

example uses:

pdfunite in-1.pdf in-2.pdf in-n.pdf out.pdf
pdfunite *.pdf out.pdf

Src:http://stackoverflow.com/questions/2507766/merge-convert-multiple-pdf-files-into-one-pdf

No comments:

Post a Comment