What is causing Ghostscript to return an error of -100?

前端 未结 3 2216
自闭症患者
自闭症患者 2021-02-18 23:18

So, I am using Matthew Ephraim\'s GhostscriptSharp, which is a simple C# wrapper for the unmanaged Win32 Ghostscript DLL in my ASP.Net MVC project. Some background:

Wha

3条回答
  •  南笙
    南笙 (楼主)
    2021-02-19 00:17

    The -100 error is a generic "fatal error" in GhostScript.

    A few things to check:

    1) Permissions (al operations require file access)

    2) Scope, you want to add the GS bin folder to the PATH variables

    3) Consider not calling GhostScript directly from asp.net, GS can be very CPU intensive, rather process files in a separate service

    I have also created a wrapper, send me an email (address on profile) and I will send it you. It allows one to pass in the GS bin folder which helps.

提交回复
热议问题