Closed
Description
Description of the bug
Recently, in the documents to process, I received a document scanned with a Lexmark machine that become blank after saving with “clean” option set to True. This behavior starts with version 1.24.0, 1.23.26 works fine.
How to reproduce the bug
Here is a public document scanned with Lexmark, found in the internet:
https://www.feb.unesp.br/Home/Administracao110/DTAd/Compras/empenhos---19_06.pdf
with pymupdf.open('empenhos---19_06.pdf') as doc:
doc.save('out.pdf', clean=True)
PyMuPDF version
1.24.13
Operating system
Windows
Python version
3.12