View Single Post
Old 05-30-2013, 01:13 AM   #9
dancal
Member
dancal began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Dec 2012
Device: PC
As a simple work-around, here's a one-liner to generate a separate TOC.pdf (which you can then prepend to the main PDF, or print):

Code:
jpdfbookmarks -p'|' -d FILE.pdf | perl -ne 'if (/(.*)\|(\d+)/) { printf "%5d  %s\n", $2, $1 }' | a2ps -B -1 -o - | ps2pdf - /tmp/TOC.pdf
Kovid, feel free to disregard my observations if they made you angry (no point in spamming others, so I won't argue any further). Whatever your feelings, I don't see why you should be calling names someone who chooses not to contribute to your open-source baby. But whatever makes you feel powerful...
dancal is offline   Reply With Quote