pdf.js/examples/helloworld
2016-04-07 13:46:07 -05:00
..
hello.js Exposes all functional members via lib exports and use them in viewer. 2016-04-07 13:46:07 -05:00
helloworld.pdf Moved helloworld/ to examples/helloworld/ 2011-09-16 08:28:42 -07:00
index.html Use RequireJS in the viewer, examples and tests. 2015-12-29 09:20:52 -06:00
README.md Convert all node make instances to gulp 2016-03-04 20:30:36 +01:00

Overview

The "hello world" example is a minimalistic application of the PDF.js project. The file helloworld.pdf originates from the GNUpdf project and contains a simple and human-readable PDF.

Getting started

Instead of simply opening index.html in a browser, you must serve the page using a web server. This can be done on your local machine without an internet connection. In the root directory of PDF.js, run gulp server in a terminal. The example can then be viewed using the following URL:

http://localhost:8888/examples/helloworld/index.html

Take a look at hello.js to see how to make basic calls to PDF.js.