Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] odoo: zlib incorrect data check
Pdf files with badly compressed data can throw zlib errors when the Odoo banner is added in the corner (Original Bills). These files are readable but cause a traceback when PyPDF2 tries to decompress the data. If we decompress the blocks byte by byte and ignore the error, the resulting file seems to be identical to the source file (aside from the odoo banner). Largely inspired by py-pdf/pypdf#422 opw-3151302
- Loading branch information