If there is a leading <~ sequence at the start of the encoded data, the ASCII85 decoder must strip this data before attempting to decode the data.
This is important because once Python 2 support is dropped the implementation can simply use base64.a85encode(data, adobe=True), so matching this code now will help prepare PyPDF4 to drop Python 2 support.
If there is a leading
<~
sequence at the start of the encoded data, the ASCII85 decoder must strip this data before attempting to decode the data.This is important because once Python 2 support is dropped the implementation can simply use
base64.a85encode(data, adobe=True)
, so matching this code now will help prepare PyPDF4 to drop Python 2 support.