Answers.Body: <p>The KDE linux program <a href="https://okular.kde.org/" rel="nofollow">Okular</a> has the ability to store annotations inside PDF files:</p>
  
  <blockquote>
    <p>By default, Okular saves annotations in the local data directory for each user. Since KDE 4.9, it's optionally possible to store them directly in a PDF file by choosing "File -> Save As...", so they can be seen in other PDF viewers.<br>
    Note that this feature requires Poppler 0.20 or newer for regular PDF documents. If the PDF document you are annotating is encrypted, this feature requires Poppler 0.22 or newer.   </p>
  </blockquote>
  
  <p>It also has the ability to archive a document along with metadata (i.e. annotations) into an Okular-specific archive format:</p>
  
  <blockquote>
    <p>Since KDE 4.2, Okular has the "document archiving" feature. This is an Okular-specific format for carrying the document plus various metadata related to it (currently only annotations).<br>
    You can save a "document archive" from the open document by choosing "File -> Export As -> Document Archive".<br>
    To open an Okular document archive, just open it with Okular as it would be eg a PDF document.</p>
  </blockquote>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-23T08:52:00.597Z
Answers.LastActivityDate: 2016-10-23T08:52:00.597Z
Answers.UserDisplayName: chronometric
Answers.Body: <p>Simple answer: <strong>NO</strong></p>
  
  <p>To annotate inside an ebook would require the file to be altered on the device side and some sites will not allow this due to the DRM they add.  That said this is why Kindle creates a secondary file instead of in the ebook itself.  This would also depend on the app you are using to view the ebook on.  </p>
  
  <p><strong>Some apps that allow Annotation for books:</strong></p>
  
  <ul>
  <li><a href="http://www.branchfire.com/iannotate/" rel="noreferrer">iAnnotate</a></li>
  <li><a href="https://itunes.apple.com/us/app/subtext/id457556753?mt=8" rel="noreferrer">Subtext</a></li>
  <li><a href="https://play.google.com/store/apps/details?id=com.mantano.reader.android.lite" rel="noreferrer">Mantano Ebook Reader</a></li>
  <li><a href="https://itunes.apple.com/us/app/ibooks/id364709193?mt=8" rel="noreferrer">iBooks</a></li>
  <li><a href="http://marvinapp.com/" rel="noreferrer">Marvin</a></li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-03-25T15:33:19.327Z
Answers.LastActivityDate: 2014-03-25T15:53:07.863Z
Answers.LastEditDate: 2014-03-25T15:53:07.863Z
Answers.UserDisplayName: DᴀʀᴛʜVᴀᴅᴇʀ
Body: <p>I believe <code>.epub</code> and <code>.mobi</code> files both don't support annotations. Which is unfortunate since they are some of the most popular formats. It looks like Kindle supports adding notes to ebooks but they are stored separately from the ebook file itself and I'm a big believer in 'the truth is in the file'. PDFs allow annotations but they don't reflow like most ebook file formats.</p>
  
  <p>This question is slightly different from the one I listed below in my comment because that question is asking about a <em>note</em> file format and I'm asking about an <em>ebook</em> file format.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-03-25T13:51:41.717Z
Comments.Text: Hmm it looks like this question might be similar to this one: http://ebooks.stackexchange.com/questions/354/is-there-any-open-standard-for-ebook-notes-format
Comments.UserDisplayName: Steve Moser
Tags: <file-format><annotations>
Title: Is there an ebook format that stores annotations in the ebook file itself?
UserDisplayName: Steve Moser
ThreadText: # Is there an ebook format that stores annotations in the ebook file itself?
  
  (Asked by: username_0 on 2014-03-25)
  
  I believe `.epub` and `.mobi` files both don't support annotations. Which is unfortunate since they are some of the most popular formats. It looks like Kindle supports adding notes to ebooks but they are stored separately from the ebook file itself and I'm a big believer in 'the truth is in the file'. PDFs allow annotations but they don't reflow like most ebook file formats.
  
  This question is slightly different from the one I listed below in my comment because that question is asking about a *note* file format and I'm asking about an *ebook* file format.
  
  **Tags:** file-format, annotations
  
  > **Comments:**
  > **username_0**: Hmm it looks like this question might be similar to this one: http://ebooks.stackexchange.com/questions/354/is-there-any-open-standard-for-ebook-notes-format  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2014-03-25. Score: 7 | Accepted answer
  
  Simple answer: **NO**
  
  To annotate inside an ebook would require the file to be altered on the device side and some sites will not allow this due to the DRM they add. That said this is why Kindle creates a secondary file instead of in the ebook itself. This would also depend on the app you are using to view the ebook on.
  
  **Some apps that allow Annotation for books:**
  
  * [iAnnotate](http://www.branchfire.com/iannotate/)
  * [Subtext](https://itunes.apple.com/us/app/subtext/id457556753?mt=8)
  * [Mantano Ebook Reader](https://play.google.com/store/apps/details?id=com.mantano.reader.android.lite)
  * [iBooks](https://itunes.apple.com/us/app/ibooks/id364709193?mt=8)
  * [Marvin](http://marvinapp.com/)
  
  
  ---
  
  ### Answer by username_1 on 2016-10-23. Score: 2
  
  The KDE linux program [Okular](https://okular.kde.org/) has the ability to store annotations inside PDF files:
  
  > By default, Okular saves annotations in the local data directory for each user. Since KDE 4.9, it's optionally possible to store them directly in a PDF file by choosing "File -> Save As...", so they can be seen in other PDF viewers.  
  > Note that this feature requires Poppler 0.20 or newer for regular PDF documents. If the PDF document you are annotating is encrypted, this feature requires Poppler 0.22 or newer.
  
  It also has the ability to archive a document along with metadata (i.e. annotations) into an Okular-specific archive format:
  
  > Since KDE 4.2, Okular has the "document archiving" feature. This is an Okular-specific format for carrying the document plus various metadata related to it (currently only annotations).  
  > You can save a "document archive" from the open document by choosing "File -> Export As -> Document Archive".  
  > To open an Okular document archive, just open it with Okular as it would be eg a PDF document.
  
  
  ---
  
  