From 5716bb05da1cba9f211db79a1ac1cb9bc54c123b Mon Sep 17 00:00:00 2001 From: TT TY Date: Tue, 3 Mar 2015 11:33:43 +0000 Subject: [PATCH] Adds npm --- Setup-PDF.js-in-a-website.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Setup-PDF.js-in-a-website.md b/Setup-PDF.js-in-a-website.md index 984e608..abfe7b3 100644 --- a/Setup-PDF.js-in-a-website.md +++ b/Setup-PDF.js-in-a-website.md @@ -1,6 +1,11 @@ You can choose to use a pre-built version of PDF.js, or build PDF.js from source. ## Pre-built PDF.js +### With npm + + npm install pdfjs-dist + +### From examples When the source code of PDF.js changes, the [online demo](http://mozilla.github.io/pdf.js/web/viewer.html) is automatically updated. The source of all demo files can easily be accessed at https://github.com/mozilla/pdf.js/tree/gh-pages/. These files can also be uploaded to your server to use PDF.js to display PDF files from your website