Skip to content

get_pixmap function removes the table and leaves just the content behind #3448

Closed
@anirudhagarwal1

Description

@anirudhagarwal1

Description of the bug

I have a single page pdf file which has a table inside it. When I load the pdf and try to call the get_pixmap function, it just keeps the content and removes the table around it.

pix = page.get_pixmap(alpha=False, dpi=150) image = Image.open(io.BytesIO(pix.tobytes())) image.save("temp.jpeg", format='jpeg')

Unfortunately, I won't be able to share to share this particular pdf on an open platform, would you be able to suggest how can I further debug it?

Sharing the part of screenshot of this pdf and the converted image.
PDF -
Screenshot 2024-05-08 at 1 41 06 AM

Image from it -
Screenshot 2024-05-08 at 1 42 34 AM

How to reproduce the bug

Seems to be breaking only in this particular kind of PDF. Seems to be working fine elsewhere.

PyMuPDF version

1.24.1

Operating system

MacOS

Python version

3.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    fix developedrelease schedule to be determinedupstream bugbug outside this package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions