Skip to main content

Mini PDF outline editor

Project description

Mini PDF Outline Editor

pipx run pdf-outline-edit

A GUI program to import, edit and modify PDF outlines/Table-of-Content through a simple textual format.

The textual format is almost the same as printed books' ToC which has been "rediscovered" multiple times.

  1. Indent level -> Nesting level
  2. Number at the end -> Page number
  3. Text in between -> Title

You can copy and paste existing outline from PDF books and tidy it up a bit to fuse it into the PDF file in 3 easy steps:

  1. Set a target PDF file
  2. Write the outline
  3. Press "Write to PDF" button
demo

Extra

Auto tidy-up

  1. Remove excessive spaces
  2. Remove ending punctuations (,.) in titles
  3. ?

Auto indent by heads

Try convert

index 1
1 Chapter one 2
1.1 nice 3
1.2 world 4
2 Chapter two 5
2.1 hello 6
2.2 noice 7
references 8

into

index 1
1 Chapter one
    1.1 nice
    1.2 world
2 Chapter two
    2.1 hello
    2.2 noice
    references 8  <--- this needs to adjust final entries that has no chapters

Extra Options

  • Offset: Starting page of the page numbers. The pages before it will be roman numerals and the offset page's page label will be 1.

Alternatives

  • HandyOutliner Almost identical program but written in .NET & iText and uses XML
  • pdf.tocgen Over-engineered by following the disgusting "unix philo-dogshit-sophy".

DevOops

# Install in virtualenv
python3 -m pip install -e .

# Run in dev environment
./src/run-gui.py

License

AGPL-3.0-or-later

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

pdf-outline-edit-24.2.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdf_outline_edit-24.2.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file pdf-outline-edit-24.2.0.tar.gz.

File metadata

  • Download URL: pdf-outline-edit-24.2.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for pdf-outline-edit-24.2.0.tar.gz
Algorithm Hash digest
SHA256 802dfd5f7dd705084e4ce2e71080e10f1f95ee51b8ffea1c29762115f3ef97fc
MD5 d1e7d995590c9b2dc5edefe51500698e
BLAKE2b-256 675c8319bee8d0956e6e150ba119d23440562171eb4dd989b272b35a1c87103e

See more details on using hashes here.

File details

Details for the file pdf_outline_edit-24.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pdf_outline_edit-24.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 354aa53a8cfd7543aa29d9bf8cbcfe8ef2779d3426b177a62726175c8fdadbaa
MD5 0c1a95fb7a3c1168c710c5d7bfe47b92
BLAKE2b-256 8f89fb4a361eb73d2a9c97cf55b8d45329cc1788b76362347f9e1f55d345c7a3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page