| <<<Back 1 day (to 2020/05/25) | Fwd 1 day (to 2020/05/27) >>> | 20200526 |
doubledev | Hello everyone, i am trying to merge a series of pdfs with ghostscript and am having issues. It loops through all the pages and shows me each one, but when that is finished, it just spits me out at a GS command line and nothing merged. Here is the script that I have been using: gs -dBatch -dNoPause -q -sDevice=pdfwrite -sOutputFile=merged.pdf | 01:42.20 |
| temp1.pdf temp2.pdf temp3.pdf | 01:42.20 |
| This is the output: | 01:43.01 |
| >>showpage, press <return> to continue<<>>showpage, press <return> to continue<<GS> | 01:43.03 |
| I have to CTRL+C to get out of the GS command line | 01:43.43 |
ray_laptop | doubledev (for the logs): Ghostsccript command line options are case sensitive: -dBATCH and -dNOPAUSE are what you want, but with -sOutputFile=merged.pdf, all three can be accomplished with: -o merged.pdf | 06:05.34 |
| doubledev: RTFM (Read the Fantastic Manual) -- https://www.ghostscript.com/doc/current/Use.htm | 06:06.24 |
| doubledev: BTW, the prompt: "GS>" accepts PostScript input as commands -- the PostScript operator to exit the interpreter (as defined by Adobe) is: quit | 06:11.10 |
| if you do CTRL-C it will abort Ghostscript without letting it finish and write the PDF output file (which it does as it exits when there is nothing else to do) | 06:12.25 |
| <<<Back 1 day (to 2020/05/25) | Forward 1 day (to 2020/05/27)>>> | |