Skip to main content
10 votes

How to create clickable table of contents in a PDF?

k2pdfopt (free, open source) can also do this by supplying a text file. See the -toclist option. Use like so: k2pdfopt -mode copy -n -toclist my_chapter_list.txt srcfile.pdf -o outfile.pdf ......
willus's user avatar
  • 291
7 votes

How to create clickable table of contents in a PDF?

Jpdfbookmark can work for scanned books Prepare the TOC in .txt file Chapter 1. The Beginning/23 Para 1.1 Child of The Beginning/25,FitWidth,96 Para 1.1.1 Child of Child of The ...
Ooker's user avatar
  • 317
3 votes

How to create clickable table of contents in a PDF?

I wrote an open source command line toolset called pdf.tocgen just for doing this. It uses the embedded font attributes and position information of headings to generate a table of contents ...
Krasjet's user avatar
  • 31
3 votes

How to create clickable table of contents in a PDF?

THIS PART IS EDITED For 'software-generated' PDF-files, i.e. PDF's not created from scans, I recommend to use (and upvote the answer by Krasjet) pdf.tocgen. Using this package becomes even easier with ...
dalanicolai's user avatar
3 votes

How to create clickable table of contents in a PDF?

I am used to a simple and free tool that adds clickable bookmarks to PDF or DjVU files: http://handyoutlinerfo.sourceforge.net/. You first have to prepare (and import in the tool) bookmarks entered ...
Patrick Bourdon's user avatar
2 votes

How to create clickable table of contents in a PDF?

The best solution I found: https://wiki.gnome.org/Attic/PdfMod Extract: You can reorder, rotate, and remove pages, export images from a document, edit the title, subject, author, and keywords, and ...
Dieudo's user avatar
  • 21
1 vote

How to create clickable table of contents in a PDF?

So in 2023, a better way to do this is to use cpdf and an LLM (large language model), like GPT4. To add bookmarks to a PDF using its Table of Contents (TOC) with cpdf, follow these steps: Extract the ...
HaoZeke's user avatar
  • 181
1 vote

How to create clickable table of contents in a PDF?

I understand most of you probably prefer an open source command line based solution but sometimes a good app can save you a lot of time. If you're on a Mac I can recommend: https://www.onekerato.com/...
Stofke's user avatar
  • 111
1 vote

How to create clickable table of contents in a PDF?

WPS office suite on Windows allows creating or editing pdf's TOC Be aware that it's a bit invasive though (shortcuts, default, runs in background...)
Arthur's user avatar
  • 11
1 vote

How to create clickable table of contents in a PDF?

Here is my repository that I plan to automate the procedure. https://github.com/aminya/tocPDF For now, it is the manual procedure (which is also inspired by other people answers).
Amin Ya's user avatar
  • 111

Only top scored, non community-wiki answers of a minimum length are eligible