mirror of
https://github.com/documenso/documenso.git
synced 2026-07-11 21:45:18 +10:00
fix: add cmaps (#2588)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user