Skip to content
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

The image generated by get_pixmap() is abnormal #3853

Closed
1339503169 opened this issue Sep 9, 2024 · 1 comment
Closed

The image generated by get_pixmap() is abnormal #3853

1339503169 opened this issue Sep 9, 2024 · 1 comment
Labels
invalid something is wrong here wontfix no intention to resolve

Comments

@1339503169
Copy link

Description of the bug

here is original pdf
error.pdf

image generated by get_pixmap()
error

what looks like in wps
image

When I use a file viewer such as WPS to view this file, it is normal, but the images generated by get_pixmap() are very strange, and the results obtained by get_text() are problematic

How to reproduce the bug

import fitz
original_pdf = "path/to/pdf"
doc = fitz.open(original_pdf)
page = doc.load_page(0)
image = page.get_pixmap()

PyMuPDF version

1.24.5

Operating system

Windows

Python version

3.8

@JorjMcKie
Copy link
Collaborator

This PDF contains severe errors which prevent any meaningful processing.

@JorjMcKie JorjMcKie added wontfix no intention to resolve invalid something is wrong here and removed duplicate labels Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid something is wrong here wontfix no intention to resolve
Projects
None yet
Development

No branches or pull requests

2 participants