Extracting Images from scanned PDF document
Extracting Images from scanned PDF document
- Subject: Extracting Images from scanned PDF document
- From: Tom Coates <email@hidden>
- Date: Wed, 27 Sep 2006 11:34:18 -0700
I've browsed archives, documentation, etc. trying to find an easy way
to do this but no luck so far.
I have an application that works with large numbers of black and
white GIF images that are scans of children's artwork. The high
speed scanner I use produces batches of scans in multi-page PDF
documents. Currently I have to run them through Graphic Converter,
to extract the separate pages, before importing them into my program,
and I'd like to avoid this step. I'd like my application to be able
to extract the images directly from the PDF documents, and convert
them to GIF via NSBitmapImageRep.
I can easily find the PDF file, create an NSPDFImageRep of the
document, see the page count, etc. But I'm not certain how to turn
those pages into separate NSBitMapImageReps. I don't see any methods
that allow such operations. I know that the PDF contains those
bitmapped images in some form. Can I somehow extract them directly?
Or do I have to draw the pages, one at a time into an NSImage, and
then save that? This seems likely to be inefficient and prone to
distortions.
What I'm looking for is suggested directions to investigate. Is it
easy to dissect the PDF and get access to its pieces? How would that
be done? Any pointers would be welcome.
TIA
Tom :::/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden