Skip to content

Multi-Page Table of Contents Template Walkthrough

Multi-Page Table of Contents (TOC) Templates automatically extract heading hierarchies from a webpage when exporting multi-page PDFs and insert one or more cleanly structured index pages before the first page of content.

Below is how to quickly enable the system’s default Table of Contents template for exported multi-page PDFs.

  1. Open the Just One Page PDF settings page and check Add Table of Contents under the Multi-Page Print section.

    multiple page toc

  2. Open any webpage with heading structure, such as Wikipedia’s Large language model.

  3. Click the Just One Page PDF icon in your browser toolbar and select System default print from the pop-up menu.

    multiple page action

  4. Once exported, you will see that Table of Contents pages have been automatically inserted before the first page of content.

    multiple page toc result

Below is how to switch to and use other built-in Table of Contents templates included with the extension.

  1. Open the Just One Page PDF settings page and ensure Add Table of Contents is checked under the Multi-Page Print section.

    multiple page toc

  2. In the Custom Templates section, click the System Built-In Templates button.

    multiple page toc custom

  3. Select any item from the pop-up template list (using Just One Page PDF as an example here).

    multiple page toc custom on

  4. Open your target webpage, such as Wikipedia’s Large language model.

  5. Click the Just One Page PDF icon in your browser toolbar and choose System default print in the pop-up.

    multiple page action

  6. The generated PDF’s Table of Contents now reflects the new template: decorative graphics frame the top title, and all TOC entries appear in red.

    multiple page toc custom result

The extension supports multiple ways to create custom templates (see the advanced documentation for custom code development). Among built-in system templates, those supporting visual text and layout customization display a settings icon () on their right.

Below is how to adjust parameters on a configurable built-in template and export your own Table of Contents template.

  1. Open the Just One Page PDF settings page and confirm Add Table of Contents is checked under the Multi-Page Print section.

    multiple page toc

  2. In the Custom Templates section, click the System Built-In Templates button.

    multiple page toc custom config

  3. Locate the Simple Color template and click the settings button () on its right to enter the parameter configuration page.

    multiple page toc custom config ui

  4. The extension will open the template editor in a new tab: the center area displays a live preview of the Table of Contents, while the dark panel in the top-right corner is the parameter control panel (available parameters depend on each template’s implementation).

    The Simple Color template supports adjusting the following parameters:

    • name: Template name used to identify it in the list
    • headerTitle: Title text displayed at the top of the Table of Contents
    • selectFont: Choose a font from your local system font list
    • fontFamily: Font family name (auto-populated when selected via selectFont, or enter manually)
    • color: Text color of the Table of Contents
    • tocTextSizeShrink: Font size scaling ratio for each sub-heading level relative to its parent heading
    • depth: Maximum heading hierarchy depth extracted to build the Table of Contents
    • tocLevelIndentation: Indentation distance for nested heading levels (defaults to 1em)
    • disableDottedLines: Hide leader dots between heading titles and page numbers
    • disableTocLinks: Disable clickable jump links from TOC entries to corresponding body sections
  5. Try modifying several parameters—for example, change name to My Simple Color, change headerTitle to TOC, set text color to #000000, and adjust tocTextSizeShrink to 0.9.

    multiple page toc custom config change

  6. Next, adjust the font: click the selectFont button, choose your desired font from the pop-up font list, and click OK.

    multipel page toc custom config select font

  7. Once all parameters are configured, click the downloadJSON button at the bottom of the panel to save the configuration file locally.

    multiple page toc custom config on

  8. Switch back to the Just One Page PDF settings page, ensure Add Table of Contents is checked, and click User-Uploaded Templates under Custom Templates.

    multiple page toc custom user upload template

  9. In the pop-up management window, click the Add button to import the JSON file you just downloaded; once uploaded, click the template in the list to ensure it is selected.

    multiple page toc custom user upload template select

  10. Re-print Wikipedia’s Large language model page to see your customized Table of Contents settings applied to the generated PDF.

    multiple page toc custom user upload template result