Fix lint warnings in hello.js.
Also split the long lines in README.
This commit is contained in:
parent
2094c29169
commit
d4723cf1cf
@ -1,7 +1,8 @@
|
||||
## "Hello World" overview
|
||||
|
||||
This example is a minimalistic application of the pdf.js project. The file
|
||||
`helloworld.pdf` is from the GNUpdf project (see [Introduction to PDF at GNUpdf](http://gnupdf.org/Introduction_to_PDF), and contains a simple and
|
||||
`helloworld.pdf` is from the GNUpdf project (see [Introduction to PDF at
|
||||
GNUpdf] (http://gnupdf.org/Introduction_to_PDF)), and contains a simple and
|
||||
human-readable PDF.
|
||||
|
||||
|
||||
@ -14,3 +15,4 @@ how to make basic calls to `pdf.js`.
|
||||
## Additional resources
|
||||
|
||||
+ [GNUpdf - Introduction to PDF](http://gnupdf.org/Introduction_to_PDF)
|
||||
|
||||
|
@ -1,7 +1,11 @@
|
||||
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
|
||||
|
||||
//
|
||||
// See README for overview
|
||||
//
|
||||
|
||||
'use strict';
|
||||
|
||||
//
|
||||
// Ajax GET request, for binary files
|
||||
@ -21,12 +25,12 @@ var ajaxGet = function(url, callback){
|
||||
}
|
||||
};
|
||||
xhr.send(null);
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
// This is where the fun happens
|
||||
//
|
||||
ajaxGet('helloworld.pdf', function(data){
|
||||
ajaxGet('helloworld.pdf', function ajaxGetHelloWorld(data) {
|
||||
//
|
||||
// Instantiate PDFDoc with PDF data
|
||||
//
|
||||
@ -47,3 +51,4 @@ ajaxGet('helloworld.pdf', function(data){
|
||||
//
|
||||
page.startRendering(context);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user