manipulate pdf files with command line on terminal

Post date: Jan 18, 2016 8:40:22 PM

The following packages are very useful for pdf file conversion and manipulation

imagemagick -- To install the package, run the command:

> brew install imagemagick

The command convert is used to convert image files (png, jpg, etc) into pdf file.

> convert image1.jpg image2.png image3.png image4.jpg output_file.pdf

poppler -- To install the package just run command:

> brew install poppler

The command pdfunite is used to concatenate pdf files into a single pdf file.

> pdfunite pdf1.pdf pdf2.pdf pdf3.pdf combined_pdf.pdf