mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Desktop: Fixes #10056: Fixed error when processing certain PDF files for OCR
This commit is contained in:
parent
c5dfa4c055
commit
be58fced93
@ -771,7 +771,11 @@ function shimInit(options: ShimInitOptions = null) {
|
||||
};
|
||||
|
||||
const loadPdf = async (path: string) => {
|
||||
const loadingTask = pdfJs.getDocument(path);
|
||||
const loadingTask = pdfJs.getDocument({
|
||||
url: path,
|
||||
// https://github.com/mozilla/pdf.js/issues/4244#issuecomment-1479534301
|
||||
useSystemFonts: true,
|
||||
});
|
||||
return await loadingTask.promise;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user