title: Cordova: How can you save a local file to device disk
body: <p>I am struggling with a Cordova/PhoneGap issue that I can't find the solution to for the life of me:</p>
  
  <p><strong>Here's the problem:</strong>
  I have a series of PDFs in my application which I build into iOS/Android and I want to be able to display them. The method doesn't matter - the PDFs need to be accessible to the end-user.</p>
  
  <p>Here is a list of methods I have tried:</p>
  
  <ul>
  <li><strong>PDFjs.</strong> I have tried this plugin to render PDFs, however it is blurry and not readable.</li>
  <li><strong>InAppBrowser plugin (_black, _system).</strong> The InAppBrowser plugin does not support rendering PDFs in all browsers, nor does it allow you to open an application resorce into a _system window so that the native functionality will be executed (download/render depending on device).</li>
  <li><strong>FileTransfer plugin.</strong> I can't seem to be able to execute a download to the device fileSystem from local application resources.</li>
  <li><strong>Anchor 'download' attribute.</strong> Download links to local resources do not allow me to download files to the application system.</li>
  </ul>
  
  <p>Every StackOverflow (or other) resource that I can find revolves around saving files to the device from a webserver, not an application.</p>
  
  <p><strong>Specifications:</strong> Cordova v5.0, Target devices: iOS 7&amp;8, Android 4.1 - 5 (so yes the Android browser is included).</p>
  
  <p>I would greatly appreciate any input regarding this.</p>