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.
Using the Default Template
Section titled “Using the Default Template”Below is how to quickly enable the system’s default Table of Contents template for exported multi-page PDFs.
-
Open the Just One Page PDF settings page and check Add Table of Contents under the Multi-Page Print section.

-
Open any webpage with heading structure, such as Wikipedia’s Large language model.
-
Click the Just One Page PDF icon in your browser toolbar and select
System default printfrom the pop-up menu.
-
Once exported, you will see that Table of Contents pages have been automatically inserted before the first page of content.

Using System Built-In Templates
Section titled “Using System Built-In Templates”Below is how to switch to and use other built-in Table of Contents templates included with the extension.
-
Open the Just One Page PDF settings page and ensure Add Table of Contents is checked under the Multi-Page Print section.

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

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

-
Open your target webpage, such as Wikipedia’s Large language model.
-
Click the Just One Page PDF icon in your browser toolbar and choose
System default printin the pop-up.
-
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.

Using Custom Uploaded Templates
Section titled “Using Custom Uploaded Templates”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.
-
Open the Just One Page PDF settings page and confirm Add Table of Contents is checked under the Multi-Page Print section.

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

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

-
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 listheaderTitle: Title text displayed at the top of the Table of ContentsselectFont: Choose a font from your local system font listfontFamily: Font family name (auto-populated when selected viaselectFont, or enter manually)color: Text color of the Table of ContentstocTextSizeShrink: Font size scaling ratio for each sub-heading level relative to its parent headingdepth: Maximum heading hierarchy depth extracted to build the Table of ContentstocLevelIndentation: Indentation distance for nested heading levels (defaults to1em)disableDottedLines: Hide leader dots between heading titles and page numbersdisableTocLinks: Disable clickable jump links from TOC entries to corresponding body sections
-
Try modifying several parameters—for example, change
nametoMy Simple Color, changeheaderTitletoTOC, set text color to#000000, and adjusttocTextSizeShrinkto0.9.
-
Next, adjust the font: click the selectFont button, choose your desired font from the pop-up font list, and click OK.

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

-
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.

-
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.

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