claird / PyPDF4

A utility to read and write PDFs with Python
obsolete-https://pythonhosted.org/PyPDF2/
Other
330 stars 61 forks source link

ASCII85 encoder does not output a leading '<~' #47

Closed kurtmckee closed 5 years ago

kurtmckee commented 5 years ago

The Adobe implementation of ASCII85 requires a leading b'<~' on encoded output. It appears the current encoder does not match the spec.

This is important because once Python 2 support is dropped the implementation can simply call base64.a85encode(data, adobe=True), so matching this behavior now will help prepare PyPDF4 to drop Python 2 support.