From b67fd9a2e640b943146f98327456a733776e42ea Mon Sep 17 00:00:00 2001 From: rderimay Date: Wed, 8 May 2024 15:33:28 +0200 Subject: [PATCH] Update const.ts, fixes lost PR #39 It seems that the PR #39 was lost during one of the commits in the mean time which leads to fonts not rendering. --- src/const.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/const.ts b/src/const.ts index 5981b6f..38ed4ed 100644 --- a/src/const.ts +++ b/src/const.ts @@ -13,7 +13,7 @@ export const PDF_TO_PNG_OPTIONS_DEFAULTS: PdfToPngOptions = { }; export const DOCUMENT_INIT_PARAMS_DEFAULTS: DocumentInitParameters = { - cMapUrl: join(__dirname, '../../node_modules/pdfjs-dist/cmaps/'), + cMapUrl: join(__dirname, '../../../node_modules/pdfjs-dist/cmaps/'), cMapPacked: true, - standardFontDataUrl: join(__dirname, '../../node_modules/pdfjs-dist/standard_fonts/'), + standardFontDataUrl: join(__dirname, '../../../node_modules/pdfjs-dist/standard_fonts/'), }