Document.save garbage parameter not working in PyMuPDF 1.21.0 (original) (raw)
Describe the bug (mandatory)
Document.save() appears to be ignoring the garbage=4 parameter in version 1.21.0 of PyMuPDF.
To Reproduce (mandatory)
- Download the example project below.
- Run
install_PyMuPDF_1_21_0.sh. - Run
python3.7 run.pyand observe file size is ~44 MB. - Run
install_PyMuPDF_1_20_2.sh. - Run
python3.7 run.pyagain and observe file size is ~9 MB.
Your configuration (mandatory)
- Windows 10 WSL2 Ubuntu 20.04 64 bit
- Python 3.7 64 bit
- PyMuPDF 1.21.0 and 1.20.2 wheel