Skip to content

cairo: Fix rendering of JPX images with transparency

1st commit
cairo: Fix rendering of JPX images with transparency

Handle transparent JPX images, they contain RGBA data
when SMaskInData is non-zero or have no ColorSpace
defined in pdf dict.

PDF files posted in below issues are fixed by this commit:
#1486
https://github.com/mozilla/pdf.js/issues/16782
https://github.com/mozilla/pdf.js/issues/11306

Inspired by related fix in pdf.js:
https://github.com/mozilla/pdf.js/pull/18204

2nd commit
cairo: Extend JPX transparency fix to CMYK images

This commit fixes the PDF posted in below issue:
https://github.com/mozilla/pdf.js/issues/17416

--

Issue #1486

Edited by Nelson Benítez León

Merge request reports