How do I obtain bitmap resolution values from a PDF
How do I obtain bitmap resolution values from a PDF
- Subject: How do I obtain bitmap resolution values from a PDF
- From: Stephen Herron <email@hidden>
- Date: Fri, 16 Jan 2009 11:17:47 -0800
Please help!
I would like to obtain the dpi value of a bitmap image in the PDF
format sourced from a URL.
When I use:
myDPIValue = [_imageProperties objectForKey:
(id)kCGImagePropertyDPIWidth];
the value is always 0
If I inspect the pdf I find the following:
<tiff:XResolution>3000000/10000</tiff:XResolution>
<tiff:YResolution>3000000/10000</tiff:YResolution>
<tiff:ResolutionUnit>2</tiff:ResolutionUnit>
Which indicates that the real dpi is 300.
How do I read and write this tiff information within a PDF?
Stephen Herron
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Colorsync-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden