mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Fixes typo in the sample code
This commit is contained in:
parent
cffe0fd15a
commit
7363456707
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
||||
```js
|
||||
PDFJS.getDocument('helloworld.pdf').then(function(pdf)) {
|
||||
PDFJS.getDocument('helloworld.pdf').then(function(pdf) {
|
||||
// you can now use *pdf* here
|
||||
});
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue