PDF with embedded PNG renders incorrectly

Originator:eric.sean.conner
Number:rdar://34276970 Date Originated:September 6 2017
Status:closed Resolved:yes
Product:macOS, Preview Product Version:macOS 10.12.6 (16G29), Preview Version 9.0 (909.18)
Classification:Serious Bug Reproducible:Always
 
Area:
Preview

The enclosed PDF renders incorrectly in Preview. It renders fine in Acrobat Reader and also when using Quick Look from the Finder.

I have investigated the problem a bit and it seems to be related to the interplay between the embedded RGBA PNG and the associated SMask in the PDF.

The image is specified as having /BitsPerComponent 16 whereas the SMask is specified as having /BitsPerComponent 8. The problem does not show up in files where these values are equal. 

Note: The included PDF was processed with QPDF (http://qpdf.sourceforge.net), to make it easier to debug.

Version/Build:
The problem exists in macOS 10.12.6 (16G29), Preview Version 9.0 (909.18)
The same rendering problem exists in iOS 11 beta 9

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!