PyMuPDF icon indicating copy to clipboard operation
PyMuPDF copied to clipboard

get_toc(simple=False) AttributeError: 'Outline' object has no attribute 'rect'

Open binghuis opened this issue 1 year ago • 1 comments

Description of the bug

When I use the get_toc(simple=False) method, the program throws an AttributeError: 'Outline' object has no attribute 'rect' error. I noticed a try-catch block in the source code, but this error is still being raised.

image image

How to reproduce the bug

use get_toc(simple=False)

PyMuPDF version

1.24.4

Operating system

MacOS

Python version

3.12

binghuis avatar May 25 '24 19:05 binghuis

PR: https://github.com/pymupdf/PyMuPDF/pull/3520

binghuis avatar May 26 '24 05:05 binghuis

I think this is now addressed, so closing.

Reopening as fix is not released yet.

Fixed in 1.24.6.