I have several hundred encapulated postscript files, and I want to merge them all into one big PDF. How can I do this?
Asked
Active
Viewed 1.7k times
5
-
Imagemagick's `convert` claims to do this. – ott-- Aug 12 '13 at 19:46
-
@ott--: Feel free to add that as an answer. – Dan Aug 12 '13 at 19:48
-
I would be wary of using anything from ImageMagick to append vectorized images, such as the `convert +/- append` command. ImageMagick developers even [warn against](http://www.imagemagick.org/Usage/formats/#ps) using it on vectorized images (unless you don't mind rasterization, of course). – madams Mar 23 '15 at 17:36
-
@madams I converted your answer to a comment since it wasn't actually answering the question. I saw in another comment that you're working on a solution. Please feel free to post it as a new answer and welcome to the site! – terdon Mar 23 '15 at 18:25
1 Answers
10
Use a command like:
gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER -sOutputFile=sin_800.pdf *.eps
Dan
- 9,372
- 5
- 25
- 39
-
2For those like me who didn't know what `gs` is, it's a command that calls the [GhostScript](http://www.ma.utexas.edu/cgi-bin/man-cgi?gs+1) _PostScript and PDF language interpreter and pre-viewer_. – Aug 12 '13 at 20:28
-
This worked great, but it added them as individual pages. How might you create a single page document from `n` images? – ryanjdillon Aug 30 '17 at 13:14
-