From de8ce480f3273cdcbad7d947386edf7d2f05014f Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Fri, 4 Nov 2022 11:29:08 +0100 Subject: [PATCH] Updated Setup PDF.js in a website (markdown) --- Setup-PDF.js-in-a-website.md | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Setup-PDF.js-in-a-website.md b/Setup-PDF.js-in-a-website.md index b6b739b..970e8a3 100644 --- a/Setup-PDF.js-in-a-website.md +++ b/Setup-PDF.js-in-a-website.md @@ -25,15 +25,5 @@ To use the library in your project add `require('pdfjs-dist')` to your file requ Refer to https://github.com/mozilla/pdf.js/tree/master/examples/webpack for a complete example. -#### Browserify - -Install the PDF.js dependency in your project: - - npm install pdfjs-dist --save-dev - -To use the library in your project add `require('pdfjs-dist')` to your file requires and build your project normally. The worker shall be built into a separate bundle: take the file "./node_modules/pdfjs-dist/build/pdf.worker.entry.js" or built a separate file that uses `require('pdfjs-dist/build/pdf.worker')`. `PDFJS.workerSrc` shall be set to point to this file. - -Refer to https://github.com/mozilla/pdf.js/tree/master/examples/browserify for a complete example. - ## Build PDF.js from source After cloning PDF.js, you can build PDF.js from source by running the `gulp generic` command. This will create the built PDF.js in the `build` folder. \ No newline at end of file