-
Notifications
You must be signed in to change notification settings - Fork 706
MuPDF error: syntax error: cannot find ExtGState resource 'GS0' #4175
Copy link
Copy link
Closed
Labels
Description
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
Reactions are currently unavailable