Tuesday, March 19, 2013

gs: Merging Multiple PDFs


sudo apt-get install gs pdftk

The Command

gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=done.pdf ./*.pdf

A Sketch of GhostScript.

    starts the Ghostscript program.
    once Ghostscript processes the PDF files, it should exit.
    If you don't include this option, Ghostscript will just keep running.
    forces Ghostscript to process each page without pausing for user interaction.
    stops Ghostscript from displaying messages while it works
    tells Ghostscript to use its built-in PDF writer to process the files.
    tells Ghostscript to save the combined PDF file with the specified name.

No comments:

Post a Comment