pdfoutline - add outlines (aka bookmarks) to PDF files
pdfoutlineinput.pdf outlines.txt output.pdf
pdfoutline reads input file given as first argument, adds outlines from text file given
as second argument, and saves result to file with name given as third argument.
File with outlines information should consist of lines in the following format:
<level><page> Outline text
<level> and <page> should be integers.
Each field should be separated by exactly one space symbol.
All values for <level> should be greater or equal than that of the first line.
Page numeration starts with 1.
Outlines file can contain comments that start with # in first column.
Comments and empty lines are ignored.