|
|
@ -51,21 +51,26 @@ The version of the extension for the Opera browser can be found at the [Opera ad |
|
|
|
|
|
|
|
|
|
|
|
To get a local copy of the current code, clone it using git: |
|
|
|
To get a local copy of the current code, clone it using git: |
|
|
|
|
|
|
|
|
|
|
|
$ git clone git://github.com/mozilla/pdf.js.git pdfjs |
|
|
|
$ git clone git://github.com/mozilla/pdf.js.git |
|
|
|
$ cd pdfjs |
|
|
|
$ cd pdf.js |
|
|
|
|
|
|
|
|
|
|
|
Next, you need to start a local web server as some browsers don't allow opening |
|
|
|
Next, install Node.js via the [official package](http://nodejs.org) or via |
|
|
|
PDF files for a file:// url: |
|
|
|
[nvm](https://github.com/creationix/nvm). If everything worked out, run |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$ npm install |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
to install all dependencies for PDF.js. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Finally you need to start a local web server as some browsers do not allow opening |
|
|
|
|
|
|
|
PDF files using a file:// URL. Run |
|
|
|
|
|
|
|
|
|
|
|
$ node make server |
|
|
|
$ node make server |
|
|
|
|
|
|
|
|
|
|
|
You can install Node via [nvm](https://github.com/creationix/nvm) or the |
|
|
|
and then you can open |
|
|
|
[official package](http://nodejs.org). If everything worked out, you can now |
|
|
|
|
|
|
|
serve |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ http://localhost:8888/web/viewer.html |
|
|
|
+ http://localhost:8888/web/viewer.html |
|
|
|
|
|
|
|
|
|
|
|
You can also view all the test pdf files on the right side serving |
|
|
|
It is also possible to view all test PDF files on the right side by opening |
|
|
|
|
|
|
|
|
|
|
|
+ http://localhost:8888/test/pdfs/?frame |
|
|
|
+ http://localhost:8888/test/pdfs/?frame |
|
|
|
|
|
|
|
|
|
|
|