File size: 1,022 Bytes
046e3b8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---

title: PDF TOC Generator Split
emoji: 📑
colorFrom: blue
colorTo: indigo
sdk: streamlit
sdk_version: 1.41.1
app_file: app.py
pinned: false
license: agpl-3.0
short_description: Generate PDF Table of Contents and Split Chapters
---


# PDF Table of Contents Generator (Split Edition)

Based on [pdf.tocgen](https://github.com/Krasjet/pdf.tocgen).

## Features
-   **Analyze Fonts**: Automatically detect chapter headers by font size and style.
-   **Search**: Find headers by text search (Case Sensitive option available).
-   **Generate TOC**: Create a clickable PDF bookmark outline.
-   **Split Chapters**: Export each chapter as a separate PDF in a ZIP file.
-   **Front/Back Matter**: Automatically handle un-numbered front matter and user-defined back matter (Index, Glossary).

## Usage
1.  Upload a PDF.
2.  Use "Scan & Generate" to find headers.
3.  Configure the "Back Matter" start page if needed.
4.  Run Pipeline.
5.  Download the Bookmarked PDF or the Zipped Chapter Splits.