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

Go Back   MobileRead Forums > E-Book Formats > PDF

Notices

Reply
 
Thread Tools Search this Thread
Old 03-16-2012, 09:35 AM   #1
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 2,127
Karma: 4938208
Join Date: Dec 2010
Device: Kindle PW2
Lightbulb Automatically adding TOC bookmarks from a text file

Originally, I had planned to use a JavaScript script to add missing TOC bookmarks, but then I found a great Open Source Java program that allows TOC boookmarks to be added from a text file: JPdfBookmarks

To use it you'll have to create a bookmarks text file that looks at a bare minimum like this (bookmark title/page number):
Code:
Chapter 1/1
Chapter 2/10
Chapter 3/20
Then all you have to do is:
1. Open the .pdf file with JPdfBookmarks.
2. Click the Load Bookmarks from a text file... button and select your bookmarks text file.
3. Save the .pdf file.

For more information, see the program's Wiki page.

The only downside is that JPdfBookmarks is a bit slow. If you have an older machine or a very large .pdf file, it might take some time until all bookmarks are added.

Last edited by Doitsu; 03-17-2012 at 06:02 AM.
Doitsu is offline   Reply With Quote
Reply

Tags
acrobat, bookmarks, javascript, toc

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript in ePub. Vijay ePub 19 11-09-2011 10:17 PM
epub et javascript zelda_pinwheel Software 9 12-09-2010 05:56 PM
Javascript and Bookmarklets Polvo Kindle Developer's Corner 0 10-17-2010 06:54 AM
I need Javascript help Nate the great Workshop 4 04-04-2009 01:55 AM
iLiad Javascript? jsc iRex Developer's Corner 1 09-10-2006 08:17 AM


All times are GMT -4. The time now is 04:43 AM.


MobileRead.com is a privately owned, operated and funded community.