Browse Source

Fixes typo in the sample code

Yury Delendik 11 years ago
parent
commit
7363456707
  1. 2
      docs/contents/examples/index.md

2
docs/contents/examples/index.md

@ -20,7 +20,7 @@ PDFJS.getDocument('helloworld.pdf')
Remember though that PDF.js uses promises, so the above will return a promise that is resolved with the document object. Remember though that PDF.js uses promises, so the above will return a promise that is resolved with the document object.
```js ```js
PDFJS.getDocument('helloworld.pdf').then(function(pdf)) { PDFJS.getDocument('helloworld.pdf').then(function(pdf) {
// you can now use *pdf* here // you can now use *pdf* here
}); });
``` ```

Loading…
Cancel
Save