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

前端 未结 3 2217
自闭症患者
自闭症患者 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:07

    So, ended up being an ID10T error that was derailing me here in this specific instance.

    In Matthew Ephraim's GhostscriptSharp code, he uses a couple of enums to define the options set forth for Ghostscript, and two in particular were the GhostscriptDevices and GhostscriptPageSizes enums. Problem is, the way they're written Resharper (Jetbrains Visual Studio plugin) has default rules for naming Enum members. Not thinking, I fixed all of these definitions to please Resharper not realizing that these are passed directly to Ghostscript, so instead of getting a7 for -sPAPERSIZE GS was getting A7, and for -sDEVICE it was getting Jpeg instead of jpeg.

    For the time being permissions weren't a problem on my end, but only because I run the Cassini web dev test server in Visual Studio.

    Thanks to @MarkRedman and @tvanfosson for their helpful suggestions!

提交回复
热议问题