Automatically generate and edit PDF table of contents / outline
Project description
PDF Auto Outline
A simple python program to automatically generate and embed a table of contents or outline in a PDF.
Usage
usage: pdfao [-h] [-s] [-o <path>] [-mp <n>] [-e] [-se] [-i <file>] [-t <n>] [--sioyek <path>] [--version] filename
positional arguments:
filename input pdf
options:
-h, --help show this help message and exit
-s, --straight write toc straight to pdf; skip editing
-o, --out <path> write changes to new pdf
-mp, --multiprocess <n>
spread job over n processes (faster on linux)
-e, --edit edit pdf toc
-se, --superedit edit pdf toc (more attibutes available)
-i, --infile <file> write toc from file to pdf
-t, --tablevel <n> tab = n toc nesting levels (default 2)
--sioyek <path> for users of the Sioyek pdf viewer
--version show program's version number and exit
For Sioyek Users
Example commands; add to prefs_user.config.
new_command _gen_toc python3 path/to/pdfao.py "%{file_path}" --sioyek path/to/sioyek -mp 4
new_command _edit_toc python3 path/to/pdfao.py "%{file_path}" --sioyek path/to/sioyek -e
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 pdf_auto_outline-0.1.0.tar.gz.
File metadata
- Download URL: pdf_auto_outline-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
399ed2d48bc506986ca732d60e1aef2f366225beced5b796b1fb766a297c5850
|
|
| MD5 |
e5eeec7a336a50b5a1c93fbc0337bd49
|
|
| BLAKE2b-256 |
91a10bdd4a6306e13a8347617f6cbc0addfefdc437863fa16668128f5ad3f3e0
|
File details
Details for the file pdf_auto_outline-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pdf_auto_outline-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c0ca74f4e13a1c4574ee7326311ae1b76a911a7e280c2db699439bbd3700876
|
|
| MD5 |
3d175850a13fbbafc1c8e4f36384546a
|
|
| BLAKE2b-256 |
46b0c4391556d26d250473e6478167310420a3f01a7311a8f5165299d256abb0
|