mirror of
https://github.com/documenso/documenso
synced 2026-04-21 13:27:18 +00:00
fix: add cmaps (#2588)
This commit is contained in:
parent
f82bf97480
commit
cc71c7d9ba
1 changed files with 2 additions and 1 deletions
|
|
@ -113,7 +113,8 @@ export default function PDFViewer({
|
|||
return;
|
||||
}
|
||||
|
||||
const loadedPdf = await pdfjsLib.getDocument({ data: result! }).promise;
|
||||
const loadedPdf = await pdfjsLib.getDocument({ data: result!, cMapUrl: '/static/cmaps/' })
|
||||
.promise;
|
||||
|
||||
if (isCancelled) {
|
||||
await loadedPdf.destroy();
|
||||
|
|
|
|||
Loading…
Reference in a new issue