maxpmaxp / pdfreader

Python API for PDF documents
MIT License
113 stars 26 forks source link

Fix pillow.py #97

Closed lisch closed 2 years ago

lisch commented 2 years ago

pillow.py calls cs[3].filtered when cs[3] is of type HexString, being the palette data for an indexed colorspace. But HexString does not have a filtered attribute. Changed it to .to_bytes() to convert the strings to bytes, which is what Pillow expects for palette data.

lisch commented 2 years ago

Needs more work.