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.
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.