Add GettingTheCode section to Readme.md

This commit is contained in:
Julian Viereck 2011-09-25 11:44:29 +02:00
parent 9e19966a83
commit 7789af2f38

View File

@ -27,6 +27,32 @@ For an online demo, visit:
This demo provides an interactive interface for displaying and browsing PDFs This demo provides an interactive interface for displaying and browsing PDFs
using the pdf.js API. using the pdf.js API.
**Getting the code**
To get a local copy of the current code, clone it using git:
```bash
git clone git://github.com/andreasgal/pdf.js.git pdfjs
cd pdfjs
```
Next, you need to start a local web server as some browsers don't allow opening
PDF files for a file:// url:
```bash
make server
```
If everything worked out, you can now serve
http://localhost:8888/web/viewer.html
You can also view all the test pdf files on the right side serving
http://localhost:8888/test/pdfs/?frame
**Hello world** **Hello world**
For a "hello world" example, take a look at: For a "hello world" example, take a look at:
@ -97,6 +123,7 @@ Join our mailing list:
Subscribe either using lists.mozilla.org or Google Groups: Subscribe either using lists.mozilla.org or Google Groups:
https://lists.mozilla.org/listinfo/dev-pdf-js https://lists.mozilla.org/listinfo/dev-pdf-js
https://groups.google.com/group/mozilla.dev.pdf-js/topics https://groups.google.com/group/mozilla.dev.pdf-js/topics
Talk to us on IRC: Talk to us on IRC: