Quote:
	
	
		
			
				
					Originally Posted by  Tex2002ans
					 
				 
				Many many years ago I used jpdfbookmarks: 
http://flavianopetrocchi.blogspot.co...marks-252.html
Edit: I just looked up and saw that willus's fantastic tool,  k2pdfopt also has an option "-toclist".
 
This allows you to create a simple text file:
 
	Code: 
	1 Introduction
10 Chapter 1
+10 Chapter 1, Part A
+25 Chapter 1, Part B
++25 Chapter 1, Part B, Subsection 1
++27 Chapter 1, Part B, Subsection 2
+30 Chapter 1, Part C
50 Chapter 2
70 Chapter 3 
 and insert that as PDF bookmarks.
 
You can read more details in his  "List of Command-Line Options" (and check the above thread too, willus has tons of answers about his program there).  
			
		 | 
	
	
 Yeah, but AFAIK, this poster is downloading websites and converting them to PDFs for readability on his Kindle.  I'm not sure how he can use k2pdfopt to create a TOC like that.  But, hey, it'll be interesting to know how it goes!
Hitch