How to merge two postscript files together?

后端 未结 6 1842
春和景丽
春和景丽 2020-12-09 06:59

I am trying to merge two or more postscript files into one. I tried concatenation but it does not work as each postscript file may have different resource header.

Ha

6条回答
  •  离开以前
    2020-12-09 07:10

    Here is an example Ghostscript commandline, which would convert and merge the two (or more) PostScript files into one PDF in a one go:

     gswin32c.exe ^
       -o c:/path/to/output.pdf ^
       -sDEVICE=pdfwrite ^
       -dPDFSettings=/Screen ^
       [...more desired parameters (optional)...] ^
       /path/to/first.ps ^
       /path/to/second.ps ^
       /path/to/third.pdf
    

    Edit: my first shot had falsely assumed PDF input files. It works of course with PostScript as well (or even a mix of PS/PDF)... And the output may also be PS.

提交回复
热议问题