tocmaker is a tool for importing and exporting pdf bookmark
with a custom format.
tocmaker utilizes PDFtk to export and import pdf bookmarks.
They must be installed before running tocmaker.
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
This will export the pdf bookmark into a file:
$ tocmaker export input.pdf -b bookmark.txtThis will override the bookmarks of the pdf file:
$ tocmaker override input.pdf -b bookmark.txtThis will add the bookmarks into a separate file:
$ tocmaker create input.pdf -b bookmark.txt -o out.pdf