mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Update readme with what files are needed.
This commit is contained in:
parent
7cf8b8d70c
commit
494008eca0
1 changed files with 6 additions and 5 deletions
11
README.md
11
README.md
|
@ -72,15 +72,16 @@ You can also view all the test pdf files on the right side serving
|
|||
|
||||
## Building PDF.js
|
||||
|
||||
In order to bundle all `src/` files into a final `pdf.js` and build the generic
|
||||
In order to bundle all `src/` files into two productions scripts and build the generic
|
||||
viewer, issue:
|
||||
|
||||
$ node make generic
|
||||
|
||||
This will generate the file `build/generic/build/pdf.js` that can be included in
|
||||
your final project. The pdf.js file is large and should be minified for
|
||||
production. Also, if you would like to support more browsers than Firefox you'll
|
||||
also need to include `compatibility.js` from `build/generic/web/`.
|
||||
This will generate `pdf.js` and `pdf.worker.js` in the `build/generic/build/` directory.
|
||||
Both scripts are needed but only `pdf.js` needs to be included since `pdf.worker.js` will
|
||||
be loaded by `pdf.js`. If you want to support more browsers than Firefox you'll also need
|
||||
to include `compatibility.js` from `build/generic/web/`. The PDF.js files are large and
|
||||
should be minified for production.
|
||||
|
||||
## Learning
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue