Skip to content

Commit

Permalink
Fixed bug where PDF resources would be loaded for image files
Browse files Browse the repository at this point in the history
  • Loading branch information
Balearica committed Aug 27, 2024
1 parent 3507c92 commit dd99124
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/import/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,10 @@ export async function importFiles(files, options = {}) {
opt.enableOpt = await runFontOptimization(ocrAll.active);
}
});
} else if (extractPDFTextNative || extractPDFTextOCR) {
await extractInternalPDFText({ setActive: true, extractPDFTextNative, extractPDFTextOCR, extractPDFTextImage });
} else if (inputData.pdfMode && (extractPDFTextNative || extractPDFTextOCR)) {
await extractInternalPDFText({
setActive: true, extractPDFTextNative, extractPDFTextOCR, extractPDFTextImage,
});
}
}

Expand Down

0 comments on commit dd99124

Please sign in to comment.