-
Notifications
You must be signed in to change notification settings - Fork 533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_pixmap function removes the table and leaves just the content behind #3448
Comments
Providing the example file (not just the pictures) is mandatory for submitting a bug. |
Since this document contains some sensitive information, I would not able to share it on a public forum. I tried to replicate this issue with multiple other PDFs and wasn't able to. Would you consider if I could mail it to you privately? |
Yes, certainly! Please do use this way. |
I have shared the same over your github email id - |
I have the same issue. |
Please provide the link to an example PDF / page - I need it to report the bug! |
@JorjMcKie |
Problem file: MuPDF issue reference: https://bugs.ghostscript.com/show_bug.cgi?id=707840 |
This specific file seems to be no issue (anymore in recent version). The test file above still is a problem. |
Fixed in PyMuPDF-1.24.14. |
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 -
Image from it -
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
The text was updated successfully, but these errors were encountered: