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
.progress((p) => { .progress((p) => {
console.log('progress', p); console.log('progress', p);
}) })
.then(({ text }) => { .then(({ files: { pdf } }) => {
console.log(text); console.log(Object.values(pdf)); // As pdf is an array-like object, you need to do a little convertion first.
worker.terminate(); worker.terminate();
}); });
``` ```

Loading…
Cancel
Save