Description of the bug
When I convert a PDF to images, some pages (containing charts like histograms or line graphs, possibly generated by matplotlib or Excel) are particularly slow.
How to reproduce the bug
Code snippet
with fitz.open(file_path) as doc:
zoom = 1.0
mat = fitz.Matrix(zoom, zoom)
for page_no in range(doc.page_count):
try:
page = doc.load_page(page_no)
pix = page.get_pixmap(matrix=mat)
The test PDF has been attached.
3RCHLDD2YCPDNLHEV4AVKEPBYJP5UBZB.pdf
PyMuPDF version
1.26.7
Operating system
MacOS
Python version
3.11
Description of the bug
When I convert a PDF to images, some pages (containing charts like histograms or line graphs, possibly generated by matplotlib or Excel) are particularly slow.
How to reproduce the bug
Code snippet
The test PDF has been attached.
3RCHLDD2YCPDNLHEV4AVKEPBYJP5UBZB.pdf
PyMuPDF version
1.26.7
Operating system
MacOS
Python version
3.11