maxpmaxp / pdfreader

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

a85decode correctly handles the adobe ascii85 alphabet. #85

Closed cyberneststicks closed 2 years ago

cyberneststicks commented 3 years ago

I encountered an issue where pdfreader would not decode a PDF file failing on a '/' in an ascii85 encoded stream.

There seem to be two variants of ascii85 decoding available. b85decode appears to use the URL safe ascii85 alphabet. Where as a85decode uses the Adobe alphabet which includes '/'.

After applying the following patch PDF coding proceeded correctly.

maxpmaxp commented 2 years ago

Thank you for the contribution