Closed arun-mani-j closed 4 days ago
('1.24.5', '1.24.4', '20240530000001')
is the version tuple I get from pymupdf.version
. (pymupdf.versionBind
results in attribute error).
These functions / properties only make sense for PDF. So an assertion is missing.
Thanks for reporting this, we have a fix.
Fixed in 1.24.7.
Thanks for the quick fix!
I still get the problem in 1.24.7.
I'm back on PyMuPDF==1.24.5 where it doesn't have this issue
Interesting. Are you still seeing a segv, or is it just a Python exception?
[1.24.7 has a test that exactly replicates the original reproducer, so i'm fairly confident it fixes this particular scenario.]
Sorry my bad, didn't read the exact description of this issue properly. It's another unrelated issues.
Good to know, thanks. Please create a new Github issue for the problem you're seeing.
Description of the bug
The program crashes with a segmentation fault when
Document.pagemode
orDocument.pagelayout
is called for epub files.How to reproduce the bug
doc = pymupdf.open("test.epub") print(doc.pagemode) print(doc.pagelayout)
PyMuPDF version
1.24.5
Operating system
Linux
Python version
3.11