pdf.js/examples/helloworld
Manas a2ba1b8189 Uses editorconfig to maintain consistent coding styles
Removes the following as they unnecessary
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
2015-11-14 07:32:18 +05:30
..
hello.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
helloworld.pdf Moved helloworld/ to examples/helloworld/ 2011-09-16 08:28:42 -07:00
index.html Splits shared/annotation.js into core/ and display/ 2014-06-17 17:43:33 -05:00
README.md Improve the instructions for the 'hello world' example 2015-03-18 22:27:00 +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 node make 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.