How to set custom page size with Ghostscript

后端 未结 4 839
闹比i
闹比i 2020-12-13 14:31

I have scanned some materials at 600 dpi, ~ 9.36x12.67 inches and prepared in PostScript (PS) format.

Now when I try to transform PS to PDF with Ghostscript (GS),

4条回答
  •  盖世英雄少女心
    2020-12-13 14:52

    I found that gs was clipping my output even though I had forced the page to the largest standard size, A0.

    The reason turned out to be that the PostScript document sent to gs by groff / grops contained a %%DocumentMedia specification that was overriding Ghostscript's choice.

    The solution was to give groff the command-line flag -p-P48i,48i. The -p tells groff to pass the rest of the option to grops. The -P48i,48i to grops sets the paper size to 48 inches by 48 inches.

提交回复
热议问题