GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sumandroid12/pdf_bookmarker: Script to bookmark unindexed pdfs from contents page

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
contents
contents
 
 
contents_bookmarker.py
contents_bookmarker.py
 
 

Repository files navigation

PDF Bookmarker

A simple python snippet to bookmark unindexed pdf files using Depth First Search.

Structure of contents.txt. Amount of whitespace does not matter.

Sl. No Topic Pg No.
1       Topic           1
1.1     Subtopic        2
1.1.1   Subsubtopic     2
1.1.2   Subsubtopic     3
1.2     Subtopic        4
2       Topic           5
1.2     Subtopic        5

leads to corresponding bookmark structure

├── 1.Topic
│   ├── 1.1 Subtopic
│   │   ├── 1.1.1 Subsubtopic
│   │   └── 1.1.2 Subsubtopic
│   └── 1.2 Subtopic
└── 2.Topic
    └── 1.2 Subtopic

To run the file:

python contents_bookmarker.py -p path/to/input.pdf -c path/to/contents --offset 0
# for more options
python contents_bookmarker.py --help

adjust the offset value to the proper number for getting the correct index on bookmarks

File will be saved as '[Indexed] input_file_name.pdf'

About

Script to bookmark unindexed pdfs from contents page

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.