Give a PDF a table of contents
Find a document’s headings and write them into it as bookmarks a reader can use.
What this does
A two-hundred-page report with no bookmarks is a report whose navigation pane is empty, and getting to chapter nine means dragging a scrollbar. The headings are on the pages; nothing has written them down anywhere a reader can reach. This finds them and hands them to the bookmarks tool, which puts real bookmarks in the file — not a list in an interface. A heading pointing at a page the document does not have is dropped before anything is written.
What it will not do
Every tool here says what it cannot do, in its own words, before you rely on it.
- The bookmarks are written into the file. It does not draw a contents page into the document itself.
- A heading pointing at a page the document does not have is dropped before anything is written, and reported.
- The headings are the model’s reading of the document. A document that marks its headings only by making them slightly larger may come back with some of them missing.
- A document longer than what may be sent is outlined from the part that was sent, so its later chapters may be absent.
- A scanned page holds a picture of words and has nothing to send. Run OCR over it first.
Questions people ask
Does this add a contents page to the document?
No. It writes the outline your PDF reader shows in its sidebar, which is what makes a long document navigable. Nothing is drawn onto the pages.
What happens to the bookmarks it already has?
They are replaced, unless you turn on keeping them — in which case the new ones are added below the old.
What exactly is sent to the provider?
The text on the screen under “what will be sent”, and nothing else of your document. It is not a summary of the request — it is the request. Nothing is sent until you press send, and the page cannot send it before showing it to you, because the code refuses.
What does this cost?
Pagecraft charges nothing and never will. Your provider charges you for what you send it, at their rates, on your own account — and you are shown the token count and an estimate in dollars before you send anything. A model on your own machine costs nothing at all.
Do I have to pay for an API key?
No. Install Ollama or LM Studio, run a model on your own computer, and point Pagecraft at it: no key, no bill, and your document never leaves the device. That path is first-class here rather than a degraded fallback.