This question already has an answer here:

I'm looking for an alternate to ghostscript to merge pdf tools.

We generally have print jobs containing more than 3000 documents, which are to be merged into a pdf. Ghostscript does this whole operation in batches i.e. it creates intermediate small pdfs and then finally merges them all into the final single pdf. (which is good!!)

However the problem is that, after creating the intermediate pdfs, ghostscript takes a lot of time to create the final single pdf . Approximately 30 odd mins to merge 7 pdf files (each around 700 kb) into a 5.5 mb file.

So, i'm thinking to try an alternate to ghostscript for the last part i.e. to merge the intermediate pdfs into the final single pdf which would give me a faster output.

I tried searching online for an alternative tool on unix for ghostscript, but cant find one.

Please help.

marked as duplicate by Daniel Andersson, Kez, Gaff, Scott, TFM Apr 1 '13 at 18:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

migrated from stackoverflow.com Apr 1 '13 at 11:25

This question came from our site for professional and enthusiast programmers.

  • Are you looking for open-source, free, commercial...? – David van Driessche Apr 1 '13 at 16:35

Try PDF toolkit... http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/

pdftk file1.pdf file2.pdf cat output newFile.pdf

  • I thought pdf toolkit was only for windows , isn't it ? – user2231358 Apr 1 '13 at 11:13

You can try pdfjam, based on LaTeX.