Using Ghostscript to convert JPEG to PDF

前端 未结 6 876
轻奢々
轻奢々 2020-12-13 02:50

What are the parameters that I should pass? The Ghostscript version I\'m using is 8.71.

6条回答
  •  误落风尘
    2020-12-13 03:02

    gs \
     -dNOSAFER \
     -sDEVICE=pdfwrite \
     -o foo.pdf \
      /usr/local/share/ghostscript/8.71/lib/viewjpeg.ps \
     -c \(my.jpg\) viewJPEG
    

    reads my.jpg and produces foo.pdf. You will have to find where your installation installed the PostScript program viewjpeg.ps.

提交回复
热议问题