Metadata-Version: 2.4
Name: toc-pdf-merge
Version: 0.1.0
Summary: Merge multiple PDFs and generate a table of contents
Author: Sophia Hunyh
Author-email: Sophia Hunyh <sophia@cs.toronto.edu>
License-Expression: MIT
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Maintainer: David Liu
Maintainer-email: David Liu <david@cs.toronto.edu>
Requires-Python: >=3.10
Project-URL: Homepage, https://github.com/MarkUsProject/toc-pdf-merge
Project-URL: Issues, https://github.com/MarkUsProject/toc-pdf-merge/issues
Description-Content-Type: text/markdown

## TOC PDF Merge

Tool to merge multiple PDFs into one, generating a table of contents.
Requires pdflatex.

### Installation

```shell script
pip install toc-pdf-merge
```

### Usage

```python
from toc_pdf_merge import PDFMerger, IncludePDF

pm = PDFMerger()
pm.add_pdf(IncludePDF('cover1.pdf', 'Part 1'))
pm.add_pdf(IncludePDF('content1.pdf'))
pm.add_pdf(IncludePDF('cover2.pdf', 'Part 2'))
pm.add_pdf(IncludePDF('content2.pdf'))
pm.add_pdf(IncludePDF('content3.pdf', 'Content 3'))
pm.make('toc', destination_folder='.')
```
