Rasterize portion of PDF

Mar 22, 2016 at 7:32 PM
First, thanks for making this library available.
I am looking to process a region of a pdf to a raster format to analyze with OCR. I found a post on StackOverflow (http://stackoverflow.com/questions/12484353/how-to-crop-a-section-of-a-pdf-file-to-png-using-ghostscript) That explains the process. Would I use the same process with your library? Looking at the ProcessorSample1.cs, I see a similar setup with the switches. I am not seeing all the commands that are listed in the link used in the example.

I would assume to follow the link, I need to run the ghostscript processor twice, get the bounding box first, then use that as the start to generate the image.

Thanks.
May 18, 2016 at 12:17 PM
Michael,

did you solve your issue reading and retrieving the bounding boxes? I've a similar problem where I've to process some .ps code twice.
First time to get the extents (dimensions) then setting up the devicewidth and height (and transormation) for the final rendering.

Ralf.