Answers.Body: <p>Try using <a href="https://pypi.org/project/pyPdf/" rel="nofollow noreferrer">pyPdf</a> library.</p>
  
  <p>And use the parser above the ToC extracted area (your non-clickable index with chapters). If it's text.</p>
  
  <p>If it's vector shapes that look like letters but do not have the information that they are letters. Then you must still use OCR to convert it to editable text.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-20T21:42:28.603Z
Answers.LastActivityDate: 2018-06-20T21:42:28.603Z
Answers.UserDisplayName: Stilgar Dragonclaw
Body: <p>I've got this big problem: I have a PDF book with, say, 4 chapters and a bunch of paragraphs in each chapters. At the begenning of the book there is a non-clickable index with chapters, paragraphs and page numbers.</p>
  
  <p>I need to create a bookmark for each paragraph but since I've been messing around with quite some books that have 10 (or more) chapters each, with plenty of paragraphs per chapter, it would take me a loooot of time to manually create the bookmarks.</p>
  
  <p>Is there a way to automatically create bookmarks from the book index?</p>
  
  <p>Thank in advance</p>
  
Tags: <pdf><editing><table-of-contents><hyperlinking>
Title: Automatic creation of bookmarks from Table Of Content
UserDisplayName: Fede Rico
ThreadText: # Automatic creation of bookmarks from Table Of Content
  
  (Asked by: username_0 on 2018-05-03)
  
  I've got this big problem: I have a PDF book with, say, 4 chapters and a bunch of paragraphs in each chapters. At the begenning of the book there is a non-clickable index with chapters, paragraphs and page numbers.
  
  I need to create a bookmark for each paragraph but since I've been messing around with quite some books that have 10 (or more) chapters each, with plenty of paragraphs per chapter, it would take me a loooot of time to manually create the bookmarks.
  
  Is there a way to automatically create bookmarks from the book index?
  
  Thank in advance
  
  **Tags:** pdf, editing, table-of-contents, hyperlinking
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-06-20. Score: 0 | Accepted answer
  
  Try using [pyPdf](https://pypi.org/project/pyPdf/) library.
  
  And use the parser above the ToC extracted area (your non-clickable index with chapters). If it's text.
  
  If it's vector shapes that look like letters but do not have the information that they are letters. Then you must still use OCR to convert it to editable text.
  
  
  ---
  
  