You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When "Marktext" exports PDF it doesn't create a PDF index¹. It would be really nice if you could enable users to toggle whether PDF index is added to the PDF.
¹ PDF index is what most people refer to as "table of contents".
What problem does this feature solve?
It is extremely hard to navigate large PDF files if there is no PDF index. Therefore for exporting large PDF files I still have to resolve to e.g. "Typora", which exports PDF index.
Exported PDFs now carry a bookmark/outline tree built from the document's headings, so the reader's navigation pane is populated — the export passes generateTaggedPDF + generateDocumentOutline to printToPDF, producing /Outlines and /StructTreeRoot from h1–h6.
Shipped in v0.20.0-beta.5 (51b039b3); not in stable 0.19.1.
One note on the "and a toggle for it" half: there is no setting — the outline is always generated. If you would specifically like it to be switchable, please open a separate issue for that.
Closing as completed. (See also #2695, the older thread for the same feature.)
Activity
YalandHong commentedon May 3, 2022
Duplicate of #2695 and #80 (comment)
Jocs commentedon Sep 22, 2026
This is implemented now.
Exported PDFs now carry a bookmark/outline tree built from the document's headings, so the reader's navigation pane is populated — the export passes
generateTaggedPDF+generateDocumentOutlinetoprintToPDF, producing/Outlinesand/StructTreeRootfromh1–h6.Shipped in v0.20.0-beta.5 (
51b039b3); not in stable 0.19.1.One note on the "and a toggle for it" half: there is no setting — the outline is always generated. If you would specifically like it to be switchable, please open a separate issue for that.
Closing as completed. (See also #2695, the older thread for the same feature.)