Skip to content

Some lines are missing when using the method: get_pixmap() #4385

@zZzClarezZz

Description

@zZzClarezZz

Description of the bug

test.pdf
When I tried to convert the pdf file to an image and save it locally, I noticed that some lines were missing from the image

How to reproduce the bug

I want to convert pdf to jpg, like this:

doc = fitz.open(pdf_file)
page = doc[0]
matrix = fitz.Matrix(3, 3)
pix = page.get_pixmap(matrix=matrix)
image_save_path = "test.jpg"
pix.save(image_save_path)

but some lines were missing:

Image

PyMuPDF version

1.25.4

Operating system

Windows

Python version

3.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions