Quantcast
Channel: Ghostscript.NET
Viewing all articles
Browse latest Browse all 393

Commented Unassigned: Ghost Script not working on Windows Server 2012 R2 [2172]

$
0
0
Hi,
I am using Ghostscript.NET ( a wrapper for the Ghostscript library ) as per your reference (http://stackoverflow.com/questions/19375898/how-i-can-run-ghost-script-command). Everything was working fine till application didn't published on Windows Server 2012 R2.

Now when i call process then i am getting object reference null exception.
Following is my code :

```
public static void Export_Pdf_Page_As_Color_Jpeg(string inputFile, string outputFile, string prefix)
{
GhostscriptPngDevice dev = new GhostscriptPngDevice(GhostscriptPngDeviceType.PngAlpha);
dev.GraphicsAlphaBits = GhostscriptImageDeviceAlphaBits.V_4;
dev.TextAlphaBits = GhostscriptImageDeviceAlphaBits.V_4;
dev.ResolutionXY = new GhostscriptImageDeviceResolution(300, 300);
dev.InputFiles.Add(inputFile);
dev.OutputPath = outputFile + prefix + "_%03d.PNG";
dev.Process();
}
```
First i was using gs909w32 and after that i had updated it to gs909w64 but still getting same error.

Please let me know where i am going wrong this is an urgent issue.
Comments: ** Comment from web user: josip **

Hi,

What Ghostscript.NET version do you use?
I see that you use Ghostscript 9.09, and the latest is Ghostscript 9.14. Could you try to install 9.14?

Cheers,
Josip


Viewing all articles
Browse latest Browse all 393

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>