Linux

How To Merge Pdf's And Images From The Terminal

Posted by Weston Ganger on January 10, 2017

Its a good idea to have a no BS method of merging pdfs and/or images together into one pdf from the terminal. Here are couple ways to do so.


# imagemagick - merge multiple pdf's or images into one pdf
convert file1.pdf file2.jpg file3.png merged.pdf

# ghostscript - merge multiple pdf's (this may have nicer results)
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=merged.pdf pdf1.pdf pdf2.pdf


Related External Links:


Posted in Linux and Tagged with ghostscript pdf merge imagemagick 


Want me to help develop your next project or application?

Contact Us

Specializing in Ruby-on-Rails, Javascript, Multi-Platform Electron Desktop Apps and Hybrid Cordova Mobile Apps.

Recommended Posts