PDF

From dankwiki
  • Combining PDFs: gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=output.pdf -dBATCH files-to-combine
  • Select pages: pdftk old.pdf cat pageranges output new.pdf
  • Remove password: gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=unencrypted.pdf -c .setpdfwrite -f encrypted.pdf