This project is read-only.

A generic error occurred in GDI+

Sep 25, 2014 at 1:32 PM
Edited Sep 25, 2014 at 1:33 PM

We attempted to use the GhostscriptRasterizer class code from the Documentation section. At the last line of code in method Start() img.Save(pageFilePath,ImageFormat.Png); we received an error "A generic error occurred in GDI+". We tried with a simple pdf that consists of only one page.

We are using 64-bit machine and 64-bit ghostscript is installed in machine. We have referenced the dll GhostScript.Net in VS 2012.

If somebody can help, it would be great.

Oct 3, 2014 at 8:50 AM

Can you please post the PDF you are trying to rasterize?

Also, you could try to clone the rasterized image: (img.Clone() as Image).Save(....) I remember once this was the case that solved similar problem.