pymupdf / PyMuPDF

PyMuPDF is a high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents.
https://pymupdf.readthedocs.io
GNU Affero General Public License v3.0
5.17k stars 495 forks source link

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

Closed binghuis closed 3 months ago

binghuis commented 4 months ago

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 commented 4 months ago

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

julian-smith-artifex-com commented 3 months ago

I think this is now addressed, so closing.

julian-smith-artifex-com commented 3 months ago

Reopening as fix is not released yet.

julian-smith-artifex-com commented 3 months ago

Fixed in 1.24.6.