Re: CGImage to NSImage, or PDFPage?
Re: CGImage to NSImage, or PDFPage?
- Subject: Re: CGImage to NSImage, or PDFPage?
- From: Rafael Cerioli <email@hidden>
- Date: Wed, 11 Aug 2010 14:03:26 -0400
Hi,
Images are stored as "XObjects" in the PDF Stream. Either you can parse the stream yourself, or you use the Voyeur.app sample code, and you will get the image with its size.
Regards,
Rafael
Le 11 août 2010 à 13:50, Brian Postow a écrit :
>
> On Aug 10, 2010, at 6:49 PM, Brian Postow wrote:
>
>
> Also, I know that a PDF File stores the resolution for each image that's on a page, however, once I've turned it into a PDFDocument/PDFPage, is there any way to get the resolution out?
>
> I happen to know that every page in the document is a separate, single image with (probably) non-72DPI resolution, created with initWithImage, with an NSImage that has it's size in 72DPI points, but it's one representation's size in pixels.
>
> I know that that information is in there somewhere, but all of the boxes are in user units (72dpi), not pixels...
>
> Brian Postow
> Senior Software Engineer
> Acordex Imaging Systems
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden