Re: How to determine if a PDFPage is image based? (A scanned page)

2009-09-19 Thread DairyKnight
That's a very smart idea. Thanks. On Tue, Sep 15, 2009 at 2:45 AM, John Calhoun wrote: > On Sep 13, 2009, at 5:01 AM, DairyKnight wrote: > >> Is there a way to determine if a PDFPage contains only a picture? >> > > You could see if NULL is returned for -[PDFPage string]. That sort of > indirect

Re: How to determine if a PDFPage is image based? (A scanned page)

2009-09-14 Thread John Calhoun
On Sep 13, 2009, at 5:01 AM, DairyKnight wrote: Is there a way to determine if a PDFPage contains only a picture? You could see if NULL is returned for -[PDFPage string]. That sort of indirectly implies an image (or a blank page — or one perhaps with line art only ...). John Calhoun—

Re: How to determine if a PDFPage is image based? (A scanned page)

2009-09-13 Thread Antonio Nunes
On 13 Sep 2009, at 13:01, DairyKnight wrote: Is there a way to determine if a PDFPage contains only a picture? There seems to be plenty of routines for rendering/drawing in Core Graphics, but none for extracting PDF information? You need to parse and analyse the page streams. Look up the d

How to determine if a PDFPage is image based? (A scanned page)

2009-09-13 Thread DairyKnight
Hi all, Is there a way to determine if a PDFPage contains only a picture? There seems to be plenty of routines for rendering/drawing in Core Graphics, but none for extracting PDF information? Regards, Dairyknight ___ Cocoa-dev mailing list (Cocoa-dev@l