mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #8235 from Snuffleupagus/issue-7901
Disable the `NativeImageDecoder` in the `node/pdf2svg.js` example (issue 7901)
This commit is contained in:
commit
f9c07fa695
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue