How to set custom page size with Ghostscript

后端 未结 4 821
闹比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 15:04

    What worked for me:

    gs -sDEVICE=pdfwrite -r720 -g4308x6066 -dPDFFitPage -o out.pdf in.pdf

    The 4308x6066 is the number of pixels, the -r720 is the number of pixels per inch.

    So here we have 720dpi, so for instance fo 5 inches, this will be 3600 pixels.

提交回复
热议问题