SL: JPEG images fail to draw into PDFs in certain situations

Originator:motownavi
Number:rdar://7874035 Date Originated:16-Apr-2010
Status:Closed Resolved:
Product:Mac OS X Product Version:10.6.x
Classification:Severe Reproducible:Always
 
With JPG data,

if:
- An incremental CGImageSource is used,
- it is updated with incomplete data
- then updated with complete data from a direct provider (NOT with CFData)
- then is used to create a CGImage
Then:
- That CGImage will fail to draw into a PDF.

Sample code attached [contact me if you want it].

To use the sample code, compile it. Run it under 10.5 and see that it creates a PDF file and opens it. There will be an image in the PDF. This is correct behavior. Run the app under 10.6.x. It will generate a PDF and open it. The PDF will appear to be blank. If you inspect the PDF you will see that the image is present but has no data.

---

We believe this issue has been addressed in  Mac OS X Lion Developer Preview  Build 11A390.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!