Combine PDFs with Ghostscript


/ Published in: Bash
Save to your folder(s)

There's a GUI tool, called Combine PDF, which purports to do the same thing. But the output loses text searchability. Whereas this method preserves searchability.

NOTE: you may need to do 'sudo port install ghostscript' first


Copy this code and paste it in your HTML
  1. gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=combined.pdf first-input.pdf second-input.pdf

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.