Skip to content

MuPDF error: syntax error: cannot find ExtGState resource 'GS0' #4175

@esraa-abdelmaksoud

Description

@esraa-abdelmaksoud

Description of the bug

I've been using PyMuPDF==1.20.2 for a while and upgraded to PyMuPDF 1.25.1 today. After running the same old code using the same old files, I saw the error below being printed but not raised. It doesn't stop the process.

MuPDF error: syntax error: cannot find ExtGState resource 'GS0'

I decided to keep downgrading gradually until PyMuPDF==1.23.26. This was when the error disappeared.

How to reproduce the bug

To reproduce the problem, please read the pages of any PDF file, and then use get_pixmap.

page = doc.load_page(p)
pix = page.get_pixmap(dpi=100)
image_bytes = pix.tobytes()

PyMuPDF version

1.25.1

Operating system

Linux

Python version

3.9

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions