【问题标题】:"Ghostscript conversion error" when use GeneratePageThumb method in GhostScript to generate thumbnail from PDF file在 GhostScript 中使用 GeneratePageThumb 方法从 PDF 文件生成缩略图时出现“Ghostscript 转换错误”
【发布时间】:2015-08-06 04:35:53
【问题描述】:

当我尝试从特殊的 PDF 文件(GeneratePageThumbs 与其他 PDF 文件配合使用)生成缩略图时遇到问题。当我调用 Ghostscript(x86) 的 GeneratePageThumbs 方法时出现异常,如下所示:

在 GhostscriptSharp.GhostscriptWrapper.CallAPI(String[] args) 在 GhostscriptSharp.GhostscriptWrapper.GeneratePageThumbs(字符串 inputPath, 字符串 outputPath, Int32 firstPage, Int32 lastPage, Int32 宽度,Int32 高度)在 GhostscriptSharp.GhostscriptWrapper.GeneratePageThumb(字符串 inputPath, String outputPath, Int32 page, Int32 width, Int32 height)

此处的特殊 PDF 文件: http://www.filedropper.com/201573

请帮帮我。

【问题讨论】:

    标签: pdf ghostscript


    【解决方案1】:

    您在这里使用的是 Ghostscript Sharp。虽然它使用 Ghostscript,但您需要小心使用这些术语的方式。您不能在 Ghostscript 中使用 GenerateThumb 方法,因为 Ghostscript 中没有这样的实体。

    我的猜测是文件名是问题,尝试将文件重命名为使用 ASCII 字符编码而不是中文字形的名称。

    如果可行,那么您需要更新版本的 Ghostscript。或者可能是 Ghostscript Sharp,但我无法帮助您。

    【讨论】:

    • 感谢您的帮助。我用的是旧版本的 Ghostscript。
    猜你喜欢
    • 1970-01-01
    • 2017-04-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-10
    • 2016-02-25
    • 1970-01-01
    相关资源
    最近更新 更多