使用CGImageDestinationRef导出为PDF时,不保留原始图像大小

我正在开发一个桌面应用程序,支持将PNG图像导出为不同的图像格式。 当我将PNG图像(请参阅第一个链接)导出为PDF格式时,它显示为link2。 http://www.flickr.com/photos/36018837@N05/5472635835/(原图) http://www.flickr.com/photos/36018837@N05/5473232908/(导出图片) 图像变得更大。 为什么会这样?我在代码中做错了吗?我该如何解决这个问题? 以下是我用于导出的代码段: // filePath:目标路径 // exportType:kUTTypePDF CGImageDestinationRef imageDestination = CGImageDestinationCreateWithURL((CFURLRef)filePath,(CFStringRef)exportType,1,NULL); BOOL成功=否; if(imageDestination!= NULL) {     CGImageRef imageRef = [inImage createCGImage];     if(imageRef!= NULL)     {     CGImageDestinationAddImage(imageDestination,imageRef,NULL);     success = CGImageDestinationFinalize(imageDestination);     CGImageRelease(imageRef);      }      CFRelease(imageDestination); } 提前致谢。 问候, 迪帕     
已邀请:
我在这个链接中找到了这个问题的原因: http://lists.apple.com/archives/cocoa-dev/2011/Feb/msg00868.html     

要回复问题请先登录注册