From 4774053c45f1528ee93989688cef2e9ac75c7019 Mon Sep 17 00:00:00 2001 From: TT TY Date: Tue, 3 Mar 2015 11:37:29 +0000 Subject: [PATCH] Updated Setup PDF.js in a website (markdown) --- Setup-PDF.js-in-a-website.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Setup-PDF.js-in-a-website.md b/Setup-PDF.js-in-a-website.md index 2591c14..af8513c 100644 --- a/Setup-PDF.js-in-a-website.md +++ b/Setup-PDF.js-in-a-website.md @@ -9,6 +9,8 @@ This way works by loading this file `pdfjs-dist/build/pdf.js` after you install #### With webpack/browserify +If you use webpack or browserify there is an easy way to require the files: + var pdf = require('pdfjs-dist/build/pdf'); var pdfWorker = require('pdfjs-dist/build/pdf.worker'); // Still figuring out how to use with worker.