title: How to use PDF.js to load file included in web app (not from "file:" URL?
body: <p>I want to be able to show PDF files within my Chrome app using <a href="https://github.com/mozilla/pdf.js" rel="nofollow">PDF.js</a> but the documentation is non-existent. I've been unable to find any simple examples or tutorials that show the code to load a PDF from a relative URL, show the page, and navigate through the PDF. They have very complex examples where 95% of the code does other things and it's very difficult to parse these and find the relevant functions. I would like to:</p>
  
  <ol>
  <li><p>Include the relevant code in my app (is this the "pdf.js" created by "node make generic" and nothing else? Or do i need to include other JS files as well?)</p></li>
  <li><p>Be able to show PDF files that are inside my <code>myapp.crx</code> file</p></li>
  <li><p>Does pdf.js require "LocalStorage"? Will localStorage continue to be allowed in Chrome extensions/apps or is it deprecated?</p></li>
  </ol>
  
  <p>Can someone tell me if #2 is possible and how to find some example code or documentation on the proper classes/functions to call and files to include/build?</p>