Answers.Body: <p>A few quick thoughts. </p>
  
  <p>First, if you are using a Kindle Fire tablet, there is no need to do a conversion. just download a PDF Reader app from the app store and read the file that way. </p>
  
  <p>If you are using an eink Kindle, I would suggest sending the PDF to the Kindle Personal Document Service which will do the conversion for you. (It's free and a cool feature in your kindle account): </p>
  
  <p><a href="https://www.amazon.com/gp/help/customer/display.html/ref=hp_pdoc_main_short_us?nodeId=200767340" rel="nofollow">https://www.amazon.com/gp/help/customer/display.html/ref=hp_pdoc_main_short_us?nodeId=200767340</a></p>
  
  <p>I haven't really looked at PDF conversions from the PDS; I'm guessing it will look really ugly. But I suspect the Kindle conversions to PDF are better than calibre's (although calibre might let you fine tune it). Using Kindle eink to read PDFs is usually a disappointing experience unless the document is short and very simple. </p>
  
  <p>I glanced at the document. (I have made similar kinds of documents using Docbook XML). This document was optimized for PDF; you will lose a lot of formatting by trying to convert it -- though ironically it's pretty easy to convert it from Docbook XML to epub files. </p>
  
  <p>To answer your question, the .opf is a file that stores epub metadata; apparently calibre needs to convert the PDF first to epub, and then reconvert it to the kindle .mobi format. That's why the end result is so horrifying. </p>
  
  <p>Also: If you have access to an android tablet, you could upload the file to Google Play Books website and then read the PDF perfectly in the Google Play Books app on your device. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-14T18:27:40.663Z
Answers.Text: I'm using kindle paper white and have updated question with this tag. The 'Kindle Personal Document Service' is automatically invoked when sending a pdf to kindle email associated with device ?
Answers.UserDisplayName: blue-sky
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-14T19:19:58.967Z
Answers.Text: Yes, if you email to the kindle device, KPDS will handle  it. http://www.amazon.com/gp/help/customer/display.html/ref=hp_left_v4_sib?ie=UTF8&nodeId=201974220 .
Answers.UserDisplayName: idiotprogrammer
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-14T19:35:14.987Z
Answers.Text: thanks but converting the pdf to mobi prior to e-mail to device instead of e-mailing the pdf has yielded much better results for me.
Answers.UserDisplayName: blue-sky
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-14T17:56:42.990Z
Answers.LastActivityDate: 2016-06-14T17:56:42.990Z
Answers.UserDisplayName: idiotprogrammer
Answers.Body: <p>Try this approach:</p>
  
  <ol>
  <li><a href="https://tex.stackexchange.com/questions/8503/how-to-convert-pdf-to-latex">Convert the PDF to Latex</a> </li>
  <li>Modify the code (if necessary).</li>
  <li><a href="https://tex.stackexchange.com/questions/16569/latex-document-to-epub-or-mobi-ebook-formats-with-mathematical-formulas">Change the paper size (probably A5) in the code and export it to Kindle or PDF format.</a></li>
  </ol>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-21T13:37:35.047Z
Answers.LastActivityDate: 2016-06-21T19:07:23.660Z
Answers.LastEditDate: 2017-04-13T12:34:32.050Z
Answers.UserDisplayName: Sadegh
Answers.Body: <p>To answer your first question. The <code>.opf</code> file holds the metadata that Calibre extracts from the (PDF) file when adding it to Calibre, as well as that metadata that you decide to edit on (author, title, series, etc).</p>
  
  <p>For some formats like ePub this metadata is almost taken verbatim and inserted in one of the files that are zipped into the ePub container. For other files like PDF this cannot all be stored in the original file and hence has to be stored separately. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-14T22:06:57.970Z
Answers.LastActivityDate: 2016-06-14T22:06:57.970Z
Answers.UserDisplayName: Anthon
Body: <pre><code>To convert the pdf using Calbre I use : 
  Click 'Add Books' and add pdfs to library
  Save To Disk -&gt; Save Only MOBI format to disk
  -Once saved the folder location of converted file should open.
  Send converted file to kindle via email
  </code></pre>
  
  <p>When I convert the pdf file using Calibre this an .opf is generated, what is use of this file ?</p>
  
  <p>The file I'm trying to convert is <a href="http://doc.akka.io/docs/akka/2.4.2/AkkaScala.pdf" rel="noreferrer">http://doc.akka.io/docs/akka/2.4.2/AkkaScala.pdf</a> and does contain a table of contents that are navigable. </p>
  
  <p>I've also tried converting using :<a href="http://ebook.online-convert.com/convert-to-mobi" rel="noreferrer">http://ebook.online-convert.com/convert-to-mobi</a></p>
  
  <p>But in both cases the table of contents navigate is not functional, clicking an item in TOC redirects to beginning of TOC.</p>
  
  <p>How to convert pdf file to kindle format and maintain shortcut links to each of the file sections ?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-28T14:49:38.810Z
Comments.Text: OP, you can read a PDF on a Kindle but the content of the PDF just won't reflow to fit the screen. Do you want to just read the PDF, or have the content reflow too?
Comments.UserDisplayName: Bulrush
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-28T14:51:58.857Z
Comments.Text: I have not found a reliable PDF to EPUB/MOBI convertor yet. So I usually convert the PDF to text, then put it in a Markdown file, and clean it up by hand. Then convert the Markdown files to EPUB. My MD2EPUB convertor already puts in a TOC based on <hN> headers.
Comments.UserDisplayName: Bulrush
Tags: <kindle><calibre><kindle-paperwhite><mobi><opf>
Title: Converting pdf with table of content to Kindle format
UserDisplayName: blue-sky
ThreadText: # Converting pdf with table of content to Kindle format
  
  (Asked by: username_0 on 2016-06-14)
  
  ```
  To convert the pdf using Calbre I use : 
  Click 'Add Books' and add pdfs to library
  Save To Disk -> Save Only MOBI format to disk
  -Once saved the folder location of converted file should open.
  Send converted file to kindle via email
  
  ```
  
  When I convert the pdf file using Calibre this an .opf is generated, what is use of this file ?
  
  The file I'm trying to convert is <http://doc.akka.io/docs/akka/2.4.2/AkkaScala.pdf> and does contain a table of contents that are navigable.
  
  I've also tried converting using :<http://ebook.online-convert.com/convert-to-mobi>
  
  But in both cases the table of contents navigate is not functional, clicking an item in TOC redirects to beginning of TOC.
  
  How to convert pdf file to kindle format and maintain shortcut links to each of the file sections ?
  
  **Tags:** kindle, calibre, kindle-paperwhite, mobi, opf
  
  > **Comments:**
  > **username_1**: OP, you can read a PDF on a Kindle but the content of the PDF just won't reflow to fit the screen. Do you want to just read the PDF, or have the content reflow too?  
  > **username_1**: I have not found a reliable PDF to EPUB/MOBI convertor yet. So I usually convert the PDF to text, then put it in a Markdown file, and clean it up by hand. Then convert the Markdown files to EPUB. My MD2EPUB convertor already puts in a TOC based on <hN> headers.  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_2 on 2016-06-14. Score: 2 | Accepted answer
  
  A few quick thoughts.
  
  First, if you are using a Kindle Fire tablet, there is no need to do a conversion. just download a PDF Reader app from the app store and read the file that way.
  
  If you are using an eink Kindle, I would suggest sending the PDF to the Kindle Personal Document Service which will do the conversion for you. (It's free and a cool feature in your kindle account):
  
  <https://www.amazon.com/gp/help/customer/display.html/ref=hp_pdoc_main_short_us?nodeId=200767340>
  
  I haven't really looked at PDF conversions from the PDS; I'm guessing it will look really ugly. But I suspect the Kindle conversions to PDF are better than calibre's (although calibre might let you fine tune it). Using Kindle eink to read PDFs is usually a disappointing experience unless the document is short and very simple.
  
  I glanced at the document. (I have made similar kinds of documents using Docbook XML). This document was optimized for PDF; you will lose a lot of formatting by trying to convert it -- though ironically it's pretty easy to convert it from Docbook XML to epub files.
  
  To answer your question, the .opf is a file that stores epub metadata; apparently calibre needs to convert the PDF first to epub, and then reconvert it to the kindle .mobi format. That's why the end result is so horrifying.
  
  Also: If you have access to an android tablet, you could upload the file to Google Play Books website and then read the PDF perfectly in the Google Play Books app on your device.
  
  > **Comments:**
  > **username_0**: I'm using kindle paper white and have updated question with this tag. The 'Kindle Personal Document Service' is automatically invoked when sending a pdf to kindle email associated with device ?  
  > **username_2**: Yes, if you email to the kindle device, KPDS will handle  it. http://www.amazon.com/gp/help/customer/display.html/ref=hp_left_v4_sib?ie=UTF8&nodeId=201974220 .  
  > **username_0**: thanks but converting the pdf to mobi prior to e-mail to device instead of e-mailing the pdf has yielded much better results for me.  
  
  ---
  
  ### Answer by username_3 on 2016-06-21. Score: 1
  
  Try this approach:
  
  1. [Convert the PDF to Latex](https://tex.stackexchange.com/questions/8503/how-to-convert-pdf-to-latex)
  2. Modify the code (if necessary).
  3. [Change the paper size (probably A5) in the code and export it to Kindle or PDF format.](https://tex.stackexchange.com/questions/16569/latex-document-to-epub-or-mobi-ebook-formats-with-mathematical-formulas)
  
  
  ---
  
  ### Answer by username_4 on 2016-06-14. Score: 1
  
  To answer your first question. The `.opf` file holds the metadata that Calibre extracts from the (PDF) file when adding it to Calibre, as well as that metadata that you decide to edit on (author, title, series, etc).
  
  For some formats like ePub this metadata is almost taken verbatim and inserted in one of the files that are zipped into the ePub container. For other files like PDF this cannot all be stored in the original file and hence has to be stored separately.
  
  
  ---
  
  