Overview
TOC Builder generates a professional Table of Contents page (or pages) inside a PDF document by reading the existing bookmark hierarchy and rendering each bookmark as a formatted TOC entry with title, dot leaders, and page number. The plug-in can produce a TOC for a single document, regenerate one in many documents at once, or build a single master PDF whose TOC links to entries spread across several source files.
TOC Builder is designed to work alongside the Bookmarker component. Build a clean bookmark tree first, then use TOC Builder to render it as a presentable TOC.
Menu location
By default, TOC Builder commands appear directly under the Plug-Ins menu. If you prefer them grouped under a Plug-Ins > Mapsoft submenu, enable Place under Mapsoft menu in Plug-Ins > Mapsoft Preferences. Acrobat must be restarted for the change to take effect.
Before you start
A few things to confirm before generating a TOC:
- Bookmark hierarchy — the TOC mirrors the bookmark tree. Any mis-nested, blank, or out-of-order bookmark will appear that way in the TOC. Use Sort Bookmarks, Set Expansion, and the bookmark validation tools first.
- Page labels — if your document uses Roman numerals, custom prefixes or section-based numbering, set the page labels correctly first. The TOC reflects whatever page labels Acrobat reports.
- Bookmarks that don’t point to pages — menu items, JavaScript actions, or named-destination bookmarks can be excluded automatically (see TOC Numbering Options).
- Insertion point — decide whether the TOC sits before or after a specific page, and whether the document’s page numbering should restart afterwards.
Quick start
The fastest path from a bookmarked PDF to a finished TOC:
- Open the PDF in Acrobat. Confirm the bookmark tree is correct.
- Run Plug-Ins > TOC Builder. The TOCBuilder dialog opens on the Mapsoft TOCBuilder tab.
- Choose Blank Page in the TOC pages group (the simplest start). Set Based on Page to the page number you want the TOC to size itself to.
- In the Levels group, click Add Level for each bookmark depth you want to include (Level 1 for top-level bookmarks, Level 2 for their children, and so on). Configure font, size, indent, and leader style per level.
- In TOC Numbering Options, set Page after TOC is and the Position & page values to control where the TOC is inserted.
- (Optional) Switch to the Header/Footer tab to add running headers/footers to the TOC pages.
- Click Apply. TOC Builder renders the TOC, inserts the new pages, and shows the result in the open document. Save the PDF to keep the changes.
Tip
Save your settings as a named configuration once they look right (see Saving and reusing configurations). The next document only needs you to load the configuration and click Apply.
The TOCBuilder dialog
The dialog is a property sheet with three tabs across the top. Settings on every tab are committed together when you click Apply or Apply to File List at the bottom of the window. Switching tabs does not lose your inputs.
| Tab | Purpose |
|---|---|
| Mapsoft TOCBuilder | The main TOC settings — how the TOC looks, where it goes in the document, and which bookmarks it includes. |
| Header / Footer | Optional running header and footer text on the generated TOC pages, with independent settings for each. |
| Files | Multi-file processing — build the same TOC into many PDFs in one run, or generate a master TOC PDF that links across them. |
Tab 1 — Mapsoft TOCBuilder
This is where most of the work happens. The tab is divided into seven groups; each group is documented below in the order it appears in the dialog.
TOC pages
Choose how the TOC pages themselves are created.
| Control | Description |
|---|---|
| Template File (radio) | Use an existing PDF as the basis for the TOC pages. Useful when you have a designed cover/letterhead PDF and want the TOC rendered onto it. |
| Browse… | Locate the template PDF on disk. |
| Blank Page (radio) | Create plain TOC pages from scratch. |
| Based on Page | Page number to copy size and orientation from. The blank TOC pages match this page’s dimensions. |
Units
The Units combo (top-right of the tab) controls the unit of measurement for every margin and position field on this tab — inches, centimetres, millimetres, or points. Switching units re-displays the existing values in the new unit; it does not reset them.
Page Margins
Margins applied to the TOC body content (excluding the title block).
| Control | Description |
|---|---|
| First page top | Top margin used only on the first TOC page — useful when the title sits higher than subsequent page tops. |
| Top / Right / Left / Bottom | Margins for all TOC pages after the first. The TOC body is laid out within these margins. |
Contents Title
The heading that appears at the top of the TOC’s first page.
| Control | Description |
|---|---|
| Text | The title text itself (e.g. Table of Contents). |
| Insert (combo) | Inserts a dynamic placeholder (such as the file name) into the title text at the cursor. |
| Font | Font family used for the title. |
| Size | Title font size in points. |
| Top / Right / Left | Margins specifically for the title block (separate from the body margins above). |
| Color | Title text colour. Click the swatch to open a colour picker. |
| Also add as bookmark | Add a bookmark to the document that points to the TOC’s title page. Recommended — lets readers jump back to the TOC from anywhere. |
Levels
The Levels list defines the formatting for each depth of bookmark you want rendered in the TOC. Level 1 is for top-level bookmarks, Level 2 for their immediate children, and so on. Bookmarks deeper than the deepest level you have defined are not rendered.
| Control | Description |
|---|---|
| Levels list | Tree showing the levels you have defined. Selecting a level shows its current settings in the panel to the right. |
| Add Level | Add a new level. Opens the level-editor dialog where you set font, size, colour, leader style, indent, and other per-level options. |
| Edit Level | Edit the selected level’s settings. Double-clicking a level in the list does the same thing. |
| Remove Level | Delete the selected level. Bookmarks that would have rendered at that depth will not appear in the TOC. |
| Remove All | Clear every level from the list. You will need to add at least one before you can generate a TOC. |
Tip
The summary panel to the right of the list shows the active level’s key settings at a glance — content colour, links colour, font name and size, line spacing, indent, page-number field width, and wrap width.
TOC Numbering Options
Where the TOC sits in the document and how page numbering interacts with it.
| Control | Description |
|---|---|
| Page after TOC is | The page number that should immediately follow the inserted TOC. Used to compute where to insert the TOC pages. |
| Position (Before / After) | Whether to insert the TOC before or after the page specified in page. |
| page | The reference page for the position. Combined with the Position selector, this places the TOC at a specific location. |
| Restart page numbering | Restart the document’s page numbering at 1 (or the chapter offset, if set) starting at the page after the TOC. |
| Show chapter numbering starting at | Display chapter numbers in the TOC entries beginning with the given value. Useful for documents organised by chapter. |
| Exclude bookmarks that don’t point to pages | Skip bookmarks whose action is not a Go-To-Page (e.g. JavaScript actions, named destinations without page anchors). Recommended for clean TOCs. |
| Create thumbnails for new pages | Generate Acrobat page thumbnails for the new TOC pages so they show up in the Acrobat thumbnails panel. |
Long Bookmark Handling
How TOC Builder copes with bookmark titles that don’t fit on one line.
| Control | Description |
|---|---|
| Wrap long bookmarks onto multiple lines | Long entries flow onto a second (and third) line within the same TOC entry. Page numbers stay on the last line. Default. |
| Truncate long bookmarks if they don’t fit | Cut the title at the available width. Enables the two truncation sub-options below. |
| Truncate at word boundary | When truncating, cut at the last whole word that fits, rather than mid-word. |
| Use ellipsis (…) at end | Append an ellipsis to truncated titles so readers know the title was shortened. |
Configurations
See Saving and reusing configurations below — the same controls (Name, Save, Remove, Set as default) appear at the bottom of this tab and are shared across the whole dialog.
Tab 3 — Files
Process many PDFs at once: either add a TOC into each one independently, or generate a single master PDF whose entries link to bookmarks in the source files.
Files to process
| Control | Description |
|---|---|
| File list | The PDFs that will receive table-of-contents processing. Three columns are shown: File Name, Bookmarks (count), and File Path. |
| Add File… | Add one or more PDFs to the list (open-file dialog). |
| Delete | Remove the selected PDF from the list. |
| Delete All | Clear the entire list. |
| Save List… | Save the current list of PDFs to a text file. Useful for re-running the same job later. |
| Load List… | Load a previously-saved list of PDFs from disk. |
| Add Folder… | Add every PDF found in a chosen folder. |
| Move Up / Move Down | Reorder the selected PDF in the list. Order matters for master mode — entries are added in list order. |
Table of Contents Output
| Control | Description |
|---|---|
| Generate table of contents in each file | For every PDF in the list, render the TOC inline using the settings on Tab 1, then save the file in place. The active document, if it is in the list, is processed last. |
| Create master PDF table of contents | Build a single new PDF whose bookmark tree links to every bookmark in every source file. Source PDFs are not modified. |
| Master PDF output | File path for the generated master PDF. Defaults to %LOCALAPPDATA%\TOCBuilder\master_toc.pdf. |
| Browse… | Choose where the master TOC PDF will be saved. |
Warning
Generate table of contents in each file overwrites the source PDFs. Make a backup of any production files before running this on a long list.
Files with no bookmarks
PDFs that contain no bookmarks are skipped (a warning lists them). In master mode they contribute no entries; in per-file mode no TOC is generated for them.
Saving and reusing configurations
The Configurations group at the bottom of the Mapsoft TOCBuilder tab lets you save the current settings (across all three tabs) as a named configuration and reload it later. This is the single most effective time-saver for repeat work.
| Control | Description |
|---|---|
| Name (combo) | The list of saved configurations. Pick one to load it; type a new name to save the current settings under that name. |
| Save | Save the current settings as a configuration with the chosen name. If the name already exists, it is overwritten. |
| Remove | Delete the selected configuration. |
| Set as default | Mark the selected configuration as the one that loads automatically the next time the dialog opens. |
Configurations are stored in TOCBuilder.ini (under your user profile or the
installed plug-ins folder, depending on your Configuration storage preference in
Mapsoft Preferences > General). Sections are named
TOCBuilderOptionsSet_<ConfigName>.
Troubleshooting
| Problem | Solution |
|---|---|
| Missing entries in the TOC | Confirm you have a level defined for the bookmark depth at which the missing entries sit. Bookmarks deeper than the deepest level you have configured are not rendered. |
| Bookmarks pointing to JavaScript actions appear in the TOC | Tick Exclude bookmarks that don’t point to pages in TOC Numbering Options. |
| Page numbers in the TOC look wrong | Open Acrobat’s Page Thumbnails > Number Pages… dialog and verify the document’s page labels. TOC Builder uses whatever Acrobat reports. |
| TOC pages spill across too many pages | Reduce the number of levels, lower font sizes, or increase the page size. The level summary panel shows the wrap width currently in use. |
| Long bookmark titles look ugly | Switch from Wrap to Truncate in Long Bookmark Handling, with Truncate at word boundary and Use ellipsis ticked. |
| Header or footer not appearing | Confirm Include header text or Include footer text is ticked. The preview area shows “disabled” when the relevant tickbox is off. |
| Apply to File List did nothing | The Files tab list is empty, or every file in the list has zero bookmarks. Use Add File… or Add Folder… to populate the list, then re-run. |
| Source files were modified unexpectedly | Generate table of contents in each file writes back to the original PDFs. Use Create master PDF table of contents instead if you want the source files left alone. |
Tip — iterate quickly
On a representative document, save a configuration once you have settings that look right. From then on, run TOC Builder with that configuration loaded, click Apply, and review — far faster than reconfiguring each level by hand for every job.
See also
- Bookmarker User Guide — build the bookmark tree the TOC reads from
- Sort Bookmarks
- Set Bookmark Expansion
- Validate Bookmarks
- Create PDF
- AI Assistant User Guide