title: Phonegap - Open / Copy a PDF file into iBook
body: <p>I am generating a PDF file using jsPdf Lib inside a Phonegap iOS application. PDF is generated and I am able to see it inside InAppBrowser, just after creation.</p>
  
  <p>I would like to store it at a place, where user would access it from outside of app as well. In android, that's not an issue. In iOS, is it possible to open the generated file in iBook, Or, copy the pdf in iBook? I have read somewhere that using <code>'itms-books:'</code> it is possible. Can anyone suggest something please?</p>
  
  <p>In general, when I open any pdf in safari, it gives me an option for 'Show/Add in iBook' - which adds the pdf in iBook. But Safari can not open any pdf file, which is stored inside app's documents area. So when I try <code>window.open()</code> with filesystem url and <code>_system</code> parameter, nothing happens. However, when I use <code>window.open()</code> with filesystem url and <code>_blank</code> parameter, it opens that pdf in InAppBrowser. But, there is no option for 'Show/Add in iBook'.</p>
  
  <p>So, what is the best way to proceed? The goal is that user can access the PDF (generated using app), without opening the app later.</p>
  
  <p>Resources checked already:</p>
  
  <p><a href="https://stackoverflow.com/questions/23656211/how-to-save-downloaded-pdf-in-ibooks-using-phonegap">https://stackoverflow.com/questions/23656211/how-to-save-downloaded-pdf-in-ibooks-using-phonegap</a> - No proper answer</p>
  
  <p><a href="https://stackoverflow.com/questions/3098342/send-pdf-to-ibooks">Send PDF to iBooks</a> - For Native, not for Phonegap</p>
  
  <p><a href="http://www.tricedesigns.com/2014/01/08/generating-pdf-inside-of-phonegap-apps/" rel="nofollow noreferrer">http://www.tricedesigns.com/2014/01/08/generating-pdf-inside-of-phonegap-apps/</a> - Concentrates mainly on creation of the pdf, not on opening</p>
  
  <p><a href="http://www.tricedesigns.com/2012/08/15/open-with-in-ios-phonegap-apps/" rel="nofollow noreferrer">http://www.tricedesigns.com/2012/08/15/open-with-in-ios-phonegap-apps/</a> - Provides following link</p>
  
  <p><a href="https://github.com/triceam/phonegap-plugins/tree/master/iOS/ExternalFileUtil" rel="nofollow noreferrer">https://github.com/triceam/phonegap-plugins/tree/master/iOS/ExternalFileUtil</a> - For older version of Phonegap</p>
  
  <p><a href="https://github.com/don/FileOpener" rel="nofollow noreferrer">https://github.com/don/FileOpener</a> - Not for iOS</p>