Skip to content

very slow when use 'get_pixmap' for some page #4867

@Aloha0424

Description

@Aloha0424

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

Metadata

Metadata

Assignees

Labels

not a bugnot a bug / user error / unable to reproduce

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions