Replies: 1 comment 2 replies
-
Your assumption is correct, so I took the liberty to move your post to "Discussions". Your PDF contains errors: The table of contents (TOC) consists of objects with a lot of forward and backward pointers. Obviously, there were an endless loop ("cycle") and invalid backward ("prev") pointers detected within those objects. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Please provide all mandatory information!
Describe the bug (mandatory)
"Cycle detected in outlines" This might not be a bug but an issue with my own PDF. After deleting some bookmarks I no longer see this error. I am looking for some insight into how to identify where this cycle is coming from.
I get this warning when I run:
fitz.TOOLS.mupdf_warnings()
To Reproduce (mandatory)
I am looking for some insight into how to identify where this cycle is coming from.
Expected behavior (optional)
I am trying to generate a table of contents. When I call doc.get_toc() and the warning is present. The get_toc() returns nothing.
Screenshots (optional)
If applicable, add screenshots to help explain your problem.
Your configuration (mandatory)
Python 3.11.3 (main, Apr 7 2023, 19:25:52) [Clang 14.0.0 (clang-1400.0.29.202)] on darwin - PyMuPDF version, installation
Bad or missing prev pointer in outline tree, repairing
... repeated 2 times...
Cycle detected in outlines
[]
Beta Was this translation helpful? Give feedback.
All reactions