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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to