-
Notifications
You must be signed in to change notification settings - Fork 676
Closed
Labels
Fixed in next releasefix developedrelease schedule to be determinedrelease schedule to be determinedupstream bugbug outside this packagebug outside this package
Description
Description of the bug
Dear PyMuPdf team,
we have found a PDF file that generates an error when I try to convert its pages to an image.
I have also tested the javascript variant of this library (mupdf.js) which produces the same error.
I test this document with other tools like Ghostscript, ImageMagik or pdftoppm and also PDF viewers like pdf.js.
All of them were able to render this PDF without any errors.
Can you please investigate this problem?
I attached the document here:
Testdokument-Scan-bw-OCR.pdf
How to reproduce the bug
import pymupdf
doc=pymupdf.open("Testdokument-Scan-bw-OCR.pdf")
for p in doc.pages():
pix = p.get_pixmap(dpi=150)
pix.save("t-%s.png" % p.number)
pix = None
doc.close()
PyMuPDF version
1.25.1
Operating system
Linux
Python version
3.12
Metadata
Metadata
Assignees
Labels
Fixed in next releasefix developedrelease schedule to be determinedrelease schedule to be determinedupstream bugbug outside this packagebug outside this package