I keep forgetting how to do this under *NIX, so I post the solution here to make it easier for me to find it. It looks like the easiest way to accomplish this is the following:
Run Ghostscript like this. Put all your PDF files in a single directory, make it the current directory and execute the command:
gs -sDEVICE=pdfwrite -dNOPAUSE -dQUIET -dBATCH -sOutputFile=out.pdf *.pdf
(or if you want to specify the files, or merge them in something other than alphabetic order, replace *.pdf by a list of files).
Comments 5
The scripts from pdfjam (ports/print/pdfjam) make this even easier. For one, you don’t need to type all those funky gs switches yourself.
Posted 10 May 2007 at 11:02 ¶@Philip: but it requires Bash….
Posted 10 May 2007 at 11:05 ¶but pdfjam has about 100MB worth of dependencies, so thanx for this useful tip!
Posted 01 Jun 2007 at 14:42 ¶Great info! I’m a noob, and I’ve never had anything work so perfectly, so easily, the first time. Using Ubuntu 9.10, merged 73 files with no problem. Thank You!
Posted 07 Dec 2009 at 06:18 ¶migliore!
Posted 11 Dec 2009 at 00:35 ¶Trackbacks & Pingbacks 1
[...] got the following message while merging some PDF files as described in a previous post… **** Warning: Fonts with Subtype = /TrueType should be embedded. The following fonts were [...]
Post a Comment