Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Stitching together multiple PDFs with ghostscript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Stitching together multiple PDFs with ghostscript
Authored by: rjbailey on Feb 26, '03 04:53:09PM
I used 'sudo dselect' and selected the GhostScript 6 package. It required a few other packages, and all *binaries* were downloaded and installed without a hitch. Also, I wrote a small script to patch together designated PDF files using this hint. I call it 'pdfpatch' and it looks like this:

#!/bin/sh
gs -sPAPERSIZE=letter -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=output.pdf $*
echo "Patched file is named output.pdf"

I type 'pdfpatch file1.pdf file2.pdf file3.pdf...' from the terminal and it works fine. (The '$*' is the list of pdf files.) I'll also look into running this from OnMyCommand so I won't even have to open a terminal window, e.g. control-click a batch of PDF's from the Finder and select "Patch PDF files".

[ Reply to This | # ]

Stitching together multiple PDFs with ghostscript
Authored by: shucks on Feb 26, '03 09:25:13PM

This is an excellent comment! I was really looking for this. I tried to create a script but it i used $2 (or was it $1) and it failed miserably *DUH*. Can I put your tips on my weblog?

---
He Travels Far Who Travels Alone, If He Knows The Way That Is



[ Reply to This | # ]