Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex


Thread Tools Search this Thread
Old 07-08-2009, 02:44 PM   #1
Junior Member
geraschenko began at the beginning.
Posts: 2
Karma: 10
Join Date: Jul 2009
Device: iRex iLiad
Arrow Tool for extracting pdf bookmarks

Hi everybody,

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
Section 1
|-Subsection 1.1
\-Subsection 1.2
Section 2
$./BookmarkStrip myfile.pdf
Bookmarks are in "myfile.bookmarks.txt"
$cat myfile.bookmarks.txt
<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>
You would then replace the tag "<bookmarks/>" in manifest.xml with the contents of myfile.bookmarks.txt. Now when you read myfile.pdf on your iLiad, you can click the "sort" icon to access these bookmarks. (I'm not sure exactly what assumptions I'm making about what version of ipdf you're running.)

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.
Attached Files
File Type: zip (1.4 KB, 415 views)
geraschenko is offline   Reply With Quote
Old 10-24-2009, 03:42 PM   #2
Junior Member
jatqceer began at the beginning.
Posts: 6
Karma: 10
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.
jatqceer is offline   Reply With Quote

bookmarks, ipdf, pdf

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
eBook PDF - free tool for creating PDF eBooks from text files KACartlidge PDF 6 01-04-2012 09:41 AM
A tool which support bookmarks sharing for several devices Sischa Apple Devices 1 02-09-2010 12:32 PM
PDF Bookmarks? firekat iRex 2 09-09-2007 04:33 AM
Extracting text with formatting from PDF nekokami PDF 22 03-05-2007 09:18 AM

All times are GMT -4. The time now is 10:21 PM. is a privately owned, operated and funded community.