Merge multiple PDFs and generate a table of contents
Project description
TOC PDF Merge
Tool to merge multiple PDFs into one, generating a table of contents. Requires pdflatex.
Installation
pip install toc-pdf-merge
Usage
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='.')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
toc_pdf_merge-0.1.0.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file toc_pdf_merge-0.1.0.tar.gz.
File metadata
- Download URL: toc_pdf_merge-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1809b263227bec50959626023f3515f0c0ea60bb4e77367066d4fd8cce88923
|
|
| MD5 |
99384d4f1ed63d801a6f89e249edb42a
|
|
| BLAKE2b-256 |
92ed22232b8b0465c512d426d893433bba9c4074c04bdcab60f1826180220740
|
File details
Details for the file toc_pdf_merge-0.1.0-py3-none-any.whl.
File metadata
- Download URL: toc_pdf_merge-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebf6842f805dcb2c1b5ad32c86f09a9b537a3178cd5227e14e26f07e54914e7e
|
|
| MD5 |
9257a1be87be8d015baf97ce3e88f3c5
|
|
| BLAKE2b-256 |
93fb32096d41ff386604022050d745249928ac4fe60acc2889773bff3d2fe160
|