Ghostscript Multipage PDF to PNG

后端 未结 3 1170
礼貌的吻别
礼貌的吻别 2021-02-01 21:28

I\'ve been using ghostscript to do pdf to image generation of a single page from the pdf. Now I need to be able to pull multiple pages from the pdf and produce a long vertical

3条回答
  •  囚心锁ツ
    2021-02-01 22:07

    If you can use ImageMagick, you could use one of its good commands:

    montage -mode Concatenate -tile 1x -density 144 -type Grayscale input.pdf output.png
    

    where

    • -density 144 determins resolution in dpi, increase it if needed, default is 72
    • -type Grayscale use it if your PDF has no colors, you'll save some KBs in the resulting image

提交回复
热议问题