Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tocmaker

tocmaker is a tool for importing and exporting pdf bookmark with a custom format.

Requirments

tocmaker utilizes PDFtk to export and import pdf bookmarks. They must be installed before running tocmaker.

Custom format

This is a simple example of a bookmark file.

10 Chapter 1
25 Chapter 2
	26 Section 1
		26 SubSection 1
		27 SubSection 2
	30 Section 2
41 Chapter 3

Example

Export bookmarks

This will export the pdf bookmark into a file:

$ tocmaker export input.pdf -b bookmark.txt

Override bookmarks

This will override the bookmarks of the pdf file:

$ tocmaker override input.pdf -b bookmark.txt

Add bookmarks

This will add the bookmarks into a separate file:

$ tocmaker create input.pdf -b bookmark.txt -o out.pdf

About

Python script to handle pdf bookmarks

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages