Skip to content

Possible regression in pdf cleaning during save. #4034

Closed
@wz93672

Description

@wz93672

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstream bugbug outside this package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions