Bookmark of PDF file #2852
-
Hi, I am trying to get and then edit bookmarks of a PDF file. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Fortunately, dealing with Tables of Content (TOC) is very easy in PyMuPDF. You almost never are required to actually look at the outline object. Simply prepare a list of sub-lists. Each sub-list must have this layout: |
Beta Was this translation helpful? Give feedback.
-
Thank you so much. It works! PyMuPDF package is wonderful ! |
Beta Was this translation helpful? Give feedback.
Fortunately, dealing with Tables of Content (TOC) is very easy in PyMuPDF. You almost never are required to actually look at the outline object.
Simply prepare a list of sub-lists. Each sub-list must have this layout:
[level, title, page]
. Please also consult the documentation here. A simple update session is shown here.