diff --git a/packages/lib/shim-init-node.ts b/packages/lib/shim-init-node.ts index 942b824be..eb5a1c26d 100644 --- a/packages/lib/shim-init-node.ts +++ b/packages/lib/shim-init-node.ts @@ -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; };