Categories

PDF Section & TOC Generator (PDF章节目录生成器)

Build a PDF with a generated table of contents and section placeholders

Generate a PDF with a clean table of contents and section pages.

Features:

  • Parse sections with page counts
  • TOC with leader styles
  • Optional page numbers for sections
  • Customizable typography and margins

Key Facts

Category
Document Tools
Input Types
textarea, text, number, select, checkbox
Output Type
file
Sample Coverage
4
API Ready
Yes

Overview

The PDF Section & TOC Generator allows you to quickly build structured PDF documents by automatically creating a professional table of contents and dedicated section placeholder pages based on your input list.

When to Use

  • When you need to create a structural outline for a long report or manual.
  • When you want to generate a clean, formatted table of contents with leader lines.
  • When you need to prepare placeholder pages for a document before adding full content.

How It Works

  • Enter your section titles and their corresponding page counts in the list field.
  • Adjust document settings such as page size, orientation, and margins to fit your requirements.
  • Customize the visual style of your table of contents, including leader styles and font sizes.
  • Generate and download your structured PDF document.

Use Cases

Creating a standardized structure for technical documentation or user manuals.
Generating a professional index for academic papers or research reports.
Building a skeleton document to organize chapters before writing the full content.

Examples

1. Technical Manual Structure

Technical Writer
Background
A technical writer needs to create a consistent framework for a new software manual with 5 distinct chapters.
Problem
Manually formatting a table of contents and creating individual section pages is tedious and prone to alignment errors.
How to Use
Input the chapter titles and page counts, set the page size to A4, and enable dotted leaders for a professional look.
Example Config
sections: 'Overview|2
Installation|5
Configuration|8
Troubleshooting|4
Appendix|2', pageSize: 'A4', showLeaders: true, leaderStyle: 'dots'
Outcome
A clean, professional PDF with a generated table of contents and clearly marked section pages.

2. Research Report Outline

Researcher
Background
A researcher is preparing a report and needs to ensure the document structure is clear before adding data.
Problem
Needs a quick way to generate a placeholder document that includes a table of contents and specific section breaks.
How to Use
List the research sections and their expected lengths, then adjust the margins to provide extra space for notes.
Example Config
sections: 'Abstract|1
Introduction|3
Methodology|6
Results|10
Conclusion|2', marginTop: 100, marginBottom: 100, showPageNumbers: true
Outcome
A structured PDF document with a table of contents and dedicated pages for each research phase.

Try with Samples

pdf

Related Hubs

FAQ

Can I customize the page size?

Yes, you can select from A4, Letter, Legal, or A5 page sizes.

What are leader styles?

Leader styles are the visual lines (dots, dashes, or solid) that connect a section title to its page number in the table of contents.

Can I change the starting page number?

Yes, you can set the start page number to any value between 1 and 999.

Is it possible to hide page numbers?

Yes, you can toggle the 'Show Page Numbers' option to include or exclude them from the generated document.

Can I adjust the margins of the PDF?

Yes, you can independently configure the top, bottom, left, and right margins in points (pt).

API Documentation

Request Endpoint

POST /en/api/tools/pdf-section-toc-generator

Request Parameters

Parameter Name Type Required Description
sections textarea Yes -
tocTitle text No -
startPageNumber number No -
pageSize select No -
orientation select No -
marginTop number No -
marginBottom number No -
marginLeft number No -
marginRight number No -
tocTitleSize number No -
tocEntrySize number No -
sectionTitleSize number No -
showLeaders checkbox No -
leaderStyle select No -
showPageNumbers checkbox No -

Response Format

{
  "filePath": "/public/processing/randomid.ext",
  "fileName": "output.ext",
  "contentType": "application/octet-stream",
  "size": 1024,
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
File: File

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-pdf-section-toc-generator": {
      "name": "pdf-section-toc-generator",
      "description": "Build a PDF with a generated table of contents and section placeholders",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=pdf-section-toc-generator",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

If you encounter any issues, please contact us at [email protected]