当我试图从一个特殊的PDF文件生成缩略图时,我面临一个问题(GeneratePageThumbs与其他PDF文件工作得很好)。当我调用Ghostscript的GeneratePageThumbs方法(X86)时,我得到了一个异常,如下所示:
( GhostscriptSharp.GhostscriptWrapper.CallAPI(String[] args)在GhostscriptSharp.GhostscriptWrapper.GeneratePageThumbs(String inputPath,字符串outputPath,Int32 firstPage,Int32 lastPage,Int32宽度,Int32高度)在GhostscriptSharp.GhostscriptWrapper.GeneratePageThumb(String inputPath,String outputPath,Int32页面,Int32宽度,Int32高度)
特殊的PDF文件在这里:http://www.filedropper.com/201573
请帮帮我。
发布于 2015-08-06 07:07:37
你在这里用的是鬼脚本夏普。当使用Ghostscript时,您需要注意使用术语的方式。您不能在Ghostscript中使用GenerateThumb方法,因为Ghostscript中没有这样的实体。
我的猜测是文件名是问题所在,请尝试将文件重命名为使用ASCII字符编码而不是汉字符号的文件。
如果这是可行的,那么您需要一个更新版本的Ghostscript。也可能是鬼脚本夏普但我帮不了你。
https://stackoverflow.com/questions/31846945
复制相似问题