Leafmarq
Turn PDF tables of contents into bookmarks with OCR
A macOS app that adds bookmarks automatically to scanned PDFs and other PDFs that do not already contain a table of contents. It reads TOC pages with OCR, extracts titles and page numbers, and embeds the result as PDF bookmarks. Three OCR engines are supported: Gemini CLI, Google Cloud Vision API, and on-device Apple Vision.
Turn a contents page into bookmarks.
Read it with OCR, edit it, and write it back into the PDF in one workflow.
OCR for PDF contents pages
Runs OCR on contents pages and extracts titles and page numbers automatically, including scanned PDFs and files without embedded TOC data.
Three OCR engines
Choose between Gemini CLI for AI-assisted recognition, Google Cloud Vision API for cloud OCR, and Apple Vision for an on-device setup-free option.
OCR preprocessing window
Improves recognition with page preprocessing. You can crop to a selected area or erase noise before OCR runs.
Table mode editing
Edit titles and page numbers cell by cell with a table interface that supports row insertion, deletion, and drag-and-drop reordering.
Text mode editing
Supports bulk editing with tab-delimited text, which is ideal for copy & paste workflows from spreadsheets.
PDF export
Saves the edited bookmark structure back into the original PDF and outputs a file with the same content plus bookmark metadata.