(for issue creation/tracking) Note : With the latest dev build an infinite loop occurs when getting number of pages https://github.com/user-attachments/files/17162634/7f40cb209fb97d1782bffcefc5e7be40.pdf _Originally posted by @pubpub-zz in https://github.com/py-pdf/pypdf/issues/2876#issuecomment-2379649591_