|
|
@ -72,15 +72,16 @@ You can also view all the test pdf files on the right side serving |
|
|
|
|
|
|
|
|
|
|
|
## Building PDF.js |
|
|
|
## 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: |
|
|
|
viewer, issue: |
|
|
|
|
|
|
|
|
|
|
|
$ node make generic |
|
|
|
$ node make generic |
|
|
|
|
|
|
|
|
|
|
|
This will generate the file `build/generic/build/pdf.js` that can be included in |
|
|
|
This will generate `pdf.js` and `pdf.worker.js` in the `build/generic/build/` directory. |
|
|
|
your final project. The pdf.js file is large and should be minified for |
|
|
|
Both scripts are needed but only `pdf.js` needs to be included since `pdf.worker.js` will |
|
|
|
production. Also, if you would like to support more browsers than Firefox you'll |
|
|
|
be loaded by `pdf.js`. If you want to support more browsers than Firefox you'll also need |
|
|
|
also need to include `compatibility.js` from `build/generic/web/`. |
|
|
|
to include `compatibility.js` from `build/generic/web/`. The PDF.js files are large and |
|
|
|
|
|
|
|
should be minified for production. |
|
|
|
|
|
|
|
|
|
|
|
## Learning |
|
|
|
## Learning |
|
|
|
|
|
|
|
|
|
|
|