Re: original image size is not retained when it is exported as PDF using CGImageDestinationRef
Re: original image size is not retained when it is exported as PDF using CGImageDestinationRef
- Subject: Re: original image size is not retained when it is exported as PDF using CGImageDestinationRef
- From: David Duncan <email@hidden>
- Date: Mon, 28 Feb 2011 13:17:29 -0800
On Feb 25, 2011, at 4:16 AM, Deepa wrote:
> Please correct if I am posting to wrong mailing list.
In general for CG functions, the CoreGraphics-Dev list is a better choice.
> I am developing a Desktop application that supports exporting an PNG image to different image formats.
> When I export my PNG to (Refer the first link) to PDF format, it appears as shown in link2.
>
> http://www.flickr.com/photos/36018837@N05/5472635835/ (Original Image)
> http://www.flickr.com/photos/36018837@N05/5473232908/ (Exported Image)
In general, you should use a service that allows you to post the actual files involved, as flickr appears to be making it rather difficult to obtain the originals (and I'm not certain if I could obtain a PDF for the exported image or not).
> The image has become larger.
My first guess would be that the source image has a DPI > 72, which would cause its display size to be smaller than that of the PDF. Barring that, ImageIO's PDF export may just be to make the image a size that fits the page.
I would recommend that rather than allowing ImageIO to export to PDF that you use the CG APIs to generate PDF data yourself, where you can have control over the process.
--
David Duncan
_______________________________________________
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