diff --git a/examples/node/pdf2svg.js b/examples/node/pdf2svg.js index 00d412169..5f09209d7 100644 --- a/examples/node/pdf2svg.js +++ b/examples/node/pdf2svg.js @@ -44,7 +44,10 @@ function getFileNameFromPath(path) { // Will be using promises to load document, pages and misc data instead of // callback. -pdfjsLib.getDocument(data).then(function (doc) { +pdfjsLib.getDocument({ + data: data, + disableNativeImageDecoder: true, +}).then(function (doc) { var numPages = doc.numPages; console.log('# Document Loaded'); console.log('Number of Pages: ' + numPages);