• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Extracting Images from scanned PDF document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Extracting Images from scanned PDF document
      • From: Scott Ribe <email@hidden>
  • Prev by Date: Binding + NSMatrix + custom cell class
  • Next by Date: Getting color table info from an NSImage
  • Previous by thread: Binding + NSMatrix + custom cell class
  • Next by thread: Re: Extracting Images from scanned PDF document
  • Index(es):
    • Date
    • Thread