From 244a4802b0feba7f9262839ce80685b374af2782 Mon Sep 17 00:00:00 2001 From: Jerome Wu Date: Tue, 2 Jul 2019 17:11:44 +0800 Subject: [PATCH] Update pdf example --- docs/examples.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/examples.md b/docs/examples.md index 33d1e0e..e9091b8 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -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(); }); ```