Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > PDF

Notices

Reply
 
Thread Tools Search this Thread
Old 03-16-2012, 08:35 AM   #1
Doitsu
Grand Sorcerer
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: 5,584
Karma: 22735033
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 05:02 AM.
Doitsu is offline   Reply With Quote
Reply

Tags
acrobat, bookmarks, javascript, toc


Forum Jump

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


All times are GMT -4. The time now is 09:18 AM.


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