Bookmarks From Table of Contents

Overview

Bookmarks From Table of Contents converts text that looks like a table of contents into PDF bookmarks. Each line of TOC text becomes a bookmark whose title is the text before the trailing page number, and whose destination is the corresponding page.

You can supply the TOC text either by selecting it in the document or by specifying a page range to scan.

How to use

  1. Open the PDF that contains a table of contents.
  2. Go to Plug-Ins > Bookmarks > Bookmarks From TOC.
  3. Choose a source mode: From selection (use the currently selected text) or From pages (scan a page range).
  4. If using page range mode, enter the start and end page numbers.
  5. Adjust the Page offset if the printed page numbers in the TOC do not match the actual PDF page numbers.
  6. Click OK to generate the bookmarks.

Options

OptionDescription
From selection Uses the text currently selected in the document as the TOC source. Select the TOC lines with the text selection tool before opening the dialog.
From pages Scans the specified page range for TOC-like text. Enter a start page and end page to define the range.
Page offset A positive or negative integer added to each page number parsed from the TOC text. Use the + and buttons or type a value directly. This is useful when the TOC page numbers differ from the physical PDF page numbers (for example, when front matter uses Roman numerals).

Expected TOC format

Each line should contain a title followed by a page number. Dot leaders and other separator characters between the title and page number are stripped automatically. The trailing digits at the end of each line are treated as the destination page number.

Tip

If bookmarks land on the wrong pages, adjust the Page offset value. For example, if the TOC says page 1 but the actual content starts on PDF page 5, set the offset to 4.

Note

This command always creates new bookmarks at the root level. It does not merge with or replace existing bookmarks. Lines that do not end with a numeric page number are skipped.

See also