Problem converting Large raster pdfs

Oct 4, 2013 at 1:53 PM
Hi,
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.
Coordinator
Oct 4, 2013 at 4:46 PM
Hi,

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) gmail.com

Thanks.
Oct 8, 2013 at 4:47 AM
Hi,
I sent large raster PDF to your mail.
Coordinator
Oct 8, 2013 at 9:17 PM
Hi,

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.

Cheers,
Josip