Skip to content

An interactive bash script that makes the creation and editing of PDF bookmarks easier.

License

Notifications You must be signed in to change notification settings

eoladil/metapdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

MetaPDF

An interactive bash script that makes the creation and editing of PDF bookmarks easier.

Features

  • Automatically detects your Linux distribution (Debian, Fedora, Arch, Alpine, etc.) and offers to install pdftk if missing.
  • Automatically removes bloatware metadata lines that clutter the file.
  • Asks interactively for bookmark name, page and level.
  • Opens your system's default text editor for review.
  • Creates a new _fixed.pdf file version to avoid overwriting the original file.

Installation

  1. Save the script code into a file named metapdf under the ~/.local/bin/ directory.
  2. Make it executable by running on the terminal:
    chmod +x metapdf
  3. Reload you bash by running:
    source ~/.bashrc 

Usage

Pass the PDF file you want to edit as an argument:

metapdf my_document.pdf

Disclaimer

The script was made with AI assistance and for personal use. Please check the code before running it.

About

An interactive bash script that makes the creation and editing of PDF bookmarks easier.

Resources

License

Stars

Watchers

Forks

Languages