This project has been archived by its maintainers, and is no longer receiving any updates.
pdfoutline
A command line tool for adding an outline (a bookmark, or table of contents) to pdf files.
Prerequisites
Make sure you have ghostscript installed.
# Mac
brew install ghostscript
# Debian, Ubuntu
sudo apt install ghostscript
ghostscript for windows can be installed from the official website
Usage
$ pip install pdfoutline
...
$ pdfoutline sample.pdf sample.toc sample-out.pdf
|██████████████████████----------------------------| 118/263
optionally, the ghost script executable can be specified as well
pdfoutline sample.pdf sample.toc sample-out.pdf --gs_path 'C:\Program Files\gs\gs9.55.0\bin\gswin64.exe'
Demo
Sample output:
Sample Table of contents file: sample.toc
# this is a comment
First Chapter 1
first section 1
first subsection 1
second section 4
third section 5
# a command to fix a gap between pdf pages and content pages
+10
Second Chapter 10
some entry 10
some entry 11
Metadata
Release files for pdfoutline 0.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pdfoutline-0.0.0.tar.gz | 5.3 kB | Without provenance | Details for pdfoutline-0.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pdfoutline-0.0.0-py3-none-any.whl | Python 3 | none | any | Details for pdfoutline-0.0.0-py3-none-any.whl |
Total release size: 11.2 kB
Release files / pdfoutline-0.0.0.tar.gz
| Download URL | pdfoutline-0.0.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32f63cbbd492e261ebc57c2cd9cb74f6f5d93b12309c2e9599c9d211cb8ac7da
|
|
BLAKE2b-256 checksum How to use checksums |
f90fe85bce3b2337209ecc58fbcc6bdb9ad0c594727684ba94cd364ac53daf39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / pdfoutline-0.0.0-py3-none-any.whl
| Download URL | pdfoutline-0.0.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
07195a870bb9100123ebf5f2781e5b9a0e4d1675b77a6abd8faeba8cdbd94fbf
|
|
BLAKE2b-256 checksum How to use checksums |
3100e1038a7d1165142492fbcd5adf86b5411c8f22fa0aa45c95f2b904b2f8c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Security for pdfoutline 0.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.