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)

  1. Download the example project below.
  2. Run install_PyMuPDF_1_21_0.sh.
  3. Run python3.7 run.py and observe file size is ~44 MB.
  4. Run install_PyMuPDF_1_20_2.sh.
  5. Run python3.7 run.py again and observe file size is ~9 MB.

PyMuPDF_bug.zip

Your configuration (mandatory)