Browse Source

Update pdf example

pull/305/head
Jerome Wu 6 years ago
parent
commit
244a4802b0
  1. 4
      docs/examples.md

4
docs/examples.md

@ -171,8 +171,8 @@ worker @@ -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();
});
```

Loading…
Cancel
Save