执行以下 raster.Open 时,有没有人从 Ghostscript 看到这个特殊错误:
using (var raster = new GhostscriptRasterizer())
{
raster.Open(pdfFileStream, _version, true);
其中 _version 是:
Ghostscript.NET.GhostscriptVersionInfo _version = Ghostscript.NET.GhostscriptVersionInfo.GetLastInstalledVersion(Ghostscript.NET.GhostscriptLicense.GPL | Ghostscript.NET.GhostscriptLicense.AFPL, Ghostscript.NET.GhostscriptLicense.GPL);
System.OverflowException:算术运算导致溢出。在 Microsoft.WinAny.Interop.DynamicNativeLibrary.FinalizeSections(MEMORY_MODULE* memory_module) 在 Microsoft.WinAny.Interop.DynamicNativeLibrary.MemoryLoadLibrary(Byte[] data) 在 Microsoft.WinAny.Interop.DynamicNativeLibrary..ctor(Byte[] buffer) 在 Ghostscript Ghostscript.NET.Interpreter.GhostscriptInterpreter..ctor(GhostscriptVersionInfo 版本,来自Memory 的布尔值)的 .NET.GhostscriptLibrary..ctor(GhostscriptVersionInfo 版本,来自内存的布尔值)在 Ghostscript.NET.Viewer.GhostscriptViewer.Open(字符串路径,GhostscriptVersionInfo 版本信息,布尔值dllFromMemory)在 Ghostscript.NET.Viewer.GhostscriptViewer.Open(流流,GhostscriptVersionInfo versionInfo,布尔 dllFromMemory)在 Ghostscript.NET.Rasterizer。