Table of Contents

PDF management

GS

Merge PDF files:

gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished.pdf file1.pdf file2.pdf

Split PDF file:

gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=m -dLastPage=n -sOutputFile=out.pdf in.pdf

PDFTK

http://www.accesspdf.com/article.php/20041129175231241

pdfjam

sed

convert (image magick)

Merge image files into a pdf file:

convert page-*.png -page A4 [-rotate 90] test.pdf
convert -density 300x300 test.png test.pdf
convert -units PixelsPerInch -density 300x300 -extent 2480x3508 -gravity center -background white test.png test.pdf

Convert pdf page into image file at resolution 300dpi:

convert -density 300x300 test.pdf test.png

pdftotext

To grep into a pdf file:

pdftotext file.pdf - | grep "text"

flpsed

To add text on a pdf file. You can save the file, but it doesn't work with landscape oriented pages…

Xournal

To add text, drawings, and highlight a pdf file. More complete and less buggy than flpsed.

PDF-XChange Viewer

Can deal with real PDF annotations (yellow boxes).

Software for Windows, but that works in Wine (download the exe installer).