使用Ghostscript将JPEG转换为PDF [英] Using Ghostscript to convert JPEG to PDF

查看:356
本文介绍了使用Ghostscript将JPEG转换为PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我应该传递哪些参数?我正在使用的Ghostscript版本是8.71.

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

推荐答案

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

读取 my.jpg 并生成 foo.pdf .您将必须找到安装PostScript程序viewjpeg.ps的安装位置.

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

这篇关于使用Ghostscript将JPEG转换为PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆