I've been trying to get the helloworld example for pdf.js to run in Meteor. So far I have:
- Placed index.html, hello.js, and pdf.js under the "clients" directory
- Enclosed the contents of "hello.js" in a "Meteor.startup()" block
Stripped out almost everything from index.html:
<body> <canvas id="the-canvas" style="border:1px solid black;"/> </body>
I thought this was enough to have the example working, but Meteor ends up complaining about the "!DOCTYPE html" declaration in pdf.js, which doesn't exist inside the file, so I am guessing that it gets imported from somewhere.
It feels like I'm missing something obvious to get this working, is there an easy solution for this?
(Aside: I am aware of the pdf.js smart package, but since I am doing development on Windows it's not really an option for me because I can't get Meteorite. Although I figure that since a smart package already exists, it's quite doable get the two to work together.)