Skip to content
Discussion options

You must be logged in to vote

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.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Carnegie-eng
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants