This project is read-only.

Problem converting Large raster pdfs

Oct 4, 2013 at 2:53 PM
I found this project very interesting, I was trying to use it a test application to convert large raster pdfs (A0 scanned document 34.06 x 46.94 in of size 7mb or so), I was getting a converted blank png of 4kb.

I was trying to convert with this code:
System.Drawing.Image img = _rasterizer.GetPage(desired_x_dpi, desired_y_dpi, pageNumber);

I have tried with setting the DPI at various levels, but the result seems to be the same always.

what should I do?
thanks for your time.
Oct 4, 2013 at 5:46 PM

Can you please send me a sample PDF document you are using so i can try to reproduce the problem?
You can send it to: habjan (at)

Oct 8, 2013 at 5:47 AM
I sent large raster PDF to your mail.
Oct 8, 2013 at 10:17 PM

Thanks, I got your email with PDF samples.

The problem was that your PDF document MediaBox lly (lower left y) had a negative value. Negative MediaBox values are allowed in PDF document but they were not handled properly in the Ghostscript.NET library and that is why you were getting a bad result. This problem is now corrected and new release of the Ghostscript.NET (v.1.1.1) will be online in two or three days.