We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

cczona on 05/30/08


Tagged

pdf macports ghostscript


Versions (?)


Who likes this?

2 people have marked this snippet as a favorite

alexxx
jamesming


Combine PDFs with Ghostscript


Published in: Bash 


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

  1. gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=combined.pdf first-input.pdf second-input.pdf

Report this snippet 

You need to login to post a comment.