|07-08-2009, 03:44 PM||#1|
Join Date: Jul 2009
Device: iRex iLiad
Tool for extracting pdf bookmarks
I really like that my iLiad can follow internal links in pdfs and that I can create bookmarks in pdfs, but AFAIK it cannot yet follow the pdf bookmarks. So I wrote a bash script that extracts the pdf bookmarks and converts them into ipdf bookmarks that you can paste into manifest.xml. Run it with no arguments to get a list of options.
Here's an example. Suppose myfile.pdf has bookmarks
$./BookmarkStrip myfile.pdf Bookmarks are in "myfile.bookmarks.txt" $cat myfile.bookmarks.txt <bookmarks> <bookmark_0><pagenumber>2</pagenumber><name>Section 1</name><comment></comment></bookmark_0> <bookmark_1><pagenumber>3</pagenumber><name>Subsection 1.1</name><comment></comment></bookmark_1> <bookmark_2><pagenumber>6</pagenumber><name>Subsection 1.2</name><comment></comment></bookmark_2> <bookmark_3><pagenumber>8</pagenumber><name>Section 2</name><comment></comment></bookmark_3> </bookmarks>
Since ipdf bookmarks cannot be nested, this script only picks out level 1 and level 2 bookmarks to avoid clutter, but you can use the -u and -l options to change this behavior.
|10-24-2009, 04:42 PM||#2|
Join Date: Dec 2007
Device: iRex iLiad
This is very good.
You probably want to mention that it needs 'pdftk' to work.
And one small suggestion, can you make it to generate a whole "manifest.xml" automatically. Ideally, you can get other information, too. And that will be a very convenient tool.
|bookmarks, ipdf, pdf|
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|eBook PDF - free tool for creating PDF eBooks from text files||KACartlidge||6||01-04-2012 10:41 AM|
|A tool which support bookmarks sharing for several devices||Sischa||Apple Devices||1||02-09-2010 01:32 PM|
|PDF Bookmarks?||firekat||iRex||2||09-09-2007 05:33 AM|
|Extracting text with formatting from PDF||nekokami||22||03-05-2007 10:18 AM|