{"_id":"@bastienmoulia/pdf.js-viewer","_rev":"1-9e842f9fc5727482d241be89a392377a","name":"@bastienmoulia/pdf.js-viewer","description":"Compiled version of pdf.js","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@bastienmoulia/pdf.js-viewer","version":"0.1.0","description":"Compiled version of pdf.js","main":"pdf.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/legalthings/pdf.js-dist.git"},"keywords":["pdf"],"author":"","license":"Apache-2.0","bugs":{"url":"https://github.com/legalthings/pdf.js-dist/issues"},"homepage":"https://github.com/legalthings/pdf.js-dist#readme","devDependencies":{"grunt":"^0.4.5","css-prefix":"git+https://github.com/moesjarraf/css-prefix.git#0.0.2+moesjarraf.3"},"dependencies":{"uglifycss":"0.0.25"},"_id":"@bastienmoulia/pdf.js-viewer@0.1.0","_npmVersion":"5.2.0","_nodeVersion":"8.1.2","_npmUser":{"name":"bastienmoulia","email":"bmoulia@gmail.com"},"dist":{"integrity":"sha512-K8McJYarvpoXHNNWulrwUOFbh7DDzaXq+yBo054K6Hd2Do0pTSneUv1kBUOZXlosdI0VB/4y90Bjqu20+SYYKg==","shasum":"23df85eeca1e49b51189079f9d92a8316d94ae7a","tarball":"https://registry.npmjs.org/@bastienmoulia/pdf.js-viewer/-/pdf.js-viewer-0.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICGG/JIth/VPDnDlHvkwyORCJfrv821EmJpHu6UyFyV8AiEAlw0paqJMXeWLjzT0hH7oXWRp36JaJG/y3PJ3XtSRLTA="}]},"maintainers":[{"name":"bastienmoulia","email":"bmoulia@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pdf.js-viewer-0.1.0.tgz_1503569141338_0.6924858835991472"}}},"readme":"# PDF.js viewer\n\n[PDF.js](https://mozilla.github.io/pdf.js/) is a Portable Document Format (PDF) library that is built with HTML5.\n\nThis is a build version of the PDF.js, including the viewer.\n\n\n## Installation\n\n    bower install pdf.js-viewer\n\n## Usage\n\nInclude `viewer.html` using [SSI](http://httpd.apache.org/docs/2.4/howto/ssi.html) or your favorite templating system.\n\n```html\n<html>\n  <head>\n    <title>PDF.js viewer</title>\n    <script src=\"bower_components/pdf.js-viewer/pdf.js\"></script>\n    <link rel=\"stylesheet\" href=\"bower_components/pdf.js-viewer/viewer.css\">\n    \n    <style>\n      html, body {\n        height: 100%;\n        margin: 0;\n        padding: 0;\n      }\n    </style>\n  </head>\n\n  <body>\n    <div class=\"pdfjs\">\n      <!--#include virtual=\"bower_components/pdf.js-viewer/viewer.html\" --> \n    </div>\n\n    <script>\n      // note that the file can also be a Uint8Array if you want to serve binary data\n      var file = 'some-document.pdf'; \n\n      // This initializes the webviewer, the file may be passed in to it to initialize the viewer with a pdf directly\n      window.PDFJS.webViewerLoad(); \n\n      // open a file in the viewer\n      window.PDFViewerApplication.open(file);\n    </script>\n  </body>\n</html>\n```\n\n## Upgrading the source\n\nNormally mozilla's PDF js viewer, will only run as standalone. We forked the project and patched it, so you can include it\nwithin a page.\n\nTo update this version, get the patched pdf.js source code and build the project\n\n    git clone https://github.com/legalthings/pdf.js.git\n    cd pdf.js\n    npm install\n    gulp generic\n    cd ..\n\nAnd update the files from source and patch them\n\n    cd pdf.js-viewer\n    npm install\n    ./build.sh ../pdf.js/build/generic/\n","maintainers":[{"name":"bastienmoulia","email":"bmoulia@gmail.com"}],"time":{"modified":"2022-04-04T17:47:22.822Z","created":"2017-08-24T10:05:42.996Z","0.1.0":"2017-08-24T10:05:42.996Z"},"homepage":"https://github.com/legalthings/pdf.js-dist#readme","keywords":["pdf"],"repository":{"type":"git","url":"git+https://github.com/legalthings/pdf.js-dist.git"},"bugs":{"url":"https://github.com/legalthings/pdf.js-dist/issues"},"license":"Apache-2.0","readmeFilename":"README.md"}