【问题标题】:someone help me with GhostScript有人帮我用 GhostScript
【发布时间】:2015-09-30 11:21:39
【问题描述】:

Script1.--------gs -dNOPAUSE -sDEVICE=jpeg -dFirstPage="1" -dLastPage="1" -sOutputFile=outputFilePath.gif -dJPEGQ=100 -r300 -q inputFilePath.pdf - c退出

Script2.--------gs -dUseCIEColor -dNOPAUSE -sDEVICE=jpeg -dFirstPage="1" -dLastPage="1" -sOutputFile=outputfile.gif -dJPEGQ=100 -r300 -q inputFile。 ps -c 退出;

我们正在使用 ghostscript 从 pdf 和 ps 文件创建图像。

如果是 pdf,ghostscript 会在脚本 1 中的 miltipage pdf 的情况下创建特定页面的图像。

当我们从 ps 文件创建图像时,不会创建页面图像,它总是创建所有页面图像。

有人请帮助我是否遗漏了什么,是否可以通过ghostscript实现。

【问题讨论】:

标签: ghostscript


【解决方案1】:

这是你之前的问题的重复,答案是一样的。在 9.18 之前的版本中,-dFirstPage 和 -dLastPage 参数仅适用于 PDF 输入。

您需要编写自定义 EndPage 过程(请参阅第 3 版 PostScript 语言参考手册)或使用 Ghostscript 9.18 版(或更高版本)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-04-04
    • 2016-07-25
    • 1970-01-01
    • 2022-06-14
    • 1970-01-01
    • 1970-01-01
    • 2013-11-24
    • 1970-01-01
    相关资源
    最近更新 更多