title: Detect metadata about PDF from Javascript
body: <p>If my JavaScript code is running in a Chrome extension, and the browser has loaded a PDF file, can I detect metadata about the loaded PDF (number of pages, etc.)?  Extra challenge: the PDF itself is being loaded by a third-party browser extension.  I am looking for a way to do this that doesn't require inclusion of a huge library like pdf.js.</p>