You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importpymupdfpdf=pymupdf.open("...zero_pages.pdf")
# this raises ValueError: bad start page numberforpageinpdf.pages():
print(page.number)
# this hangs foreverforpageinpdf.pages(-1, -1):
print(page.number)
I've tried this on Mac and Linux, and with PyMuPDF versions 1.24.9 and 1.24.13
PyMuPDF version
1.24.13
Operating system
MacOS
Python version
3.11
The text was updated successfully, but these errors were encountered:
C-Saunders
changed the title
PyMuPDF hangs when iterating over zero page PDFs backwards
PyMuPDF hangs when iterating over zero page PDF pages backwards
Nov 4, 2024
Description of the bug
PyMuPDF is able to open this PDF, but hangs if I try to iterate over the pages backwards.
How to reproduce the bug
zero_pages.pdf
I've tried this on Mac and Linux, and with PyMuPDF versions 1.24.9 and 1.24.13
PyMuPDF version
1.24.13
Operating system
MacOS
Python version
3.11
The text was updated successfully, but these errors were encountered: