Skip to content

Commit

Permalink
Update pdf example
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromewu committed Jul 2, 2019
1 parent 7f406f4 commit 244a480
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ worker
.progress((p) => {
console.log('progress', p);
})
.then(({ text }) => {
console.log(text);
.then(({ files: { pdf } }) => {
console.log(Object.values(pdf)); // As pdf is an array-like object, you need to do a little convertion first.
worker.terminate();
});
```
Expand Down

0 comments on commit 244a480

Please sign in to comment.