File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export async function fetchPDF({
1515 cMapUrl = CMAP_URL ,
1616 cMapPacked = CMAP_PACKED ,
1717 standardFontDataUrl = STANDARD_FONT_DATA_URL ,
18+ isEvalSupported = false ,
1819 ...rest
1920} : DocumentInitParameters ) {
2021 const pdfjs = Meteor . isClient
@@ -27,8 +28,13 @@ export async function fetchPDF({
2728 // pdfjs.GlobalWorkerOptions.workerSrc = `//cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfjs.version}/pdf.worker.js`;
2829 }
2930
30- return pdfjs . getDocument ( { cMapUrl, cMapPacked, standardFontDataUrl, ...rest } )
31- . promise ;
31+ return pdfjs . getDocument ( {
32+ cMapUrl,
33+ cMapPacked,
34+ standardFontDataUrl,
35+ isEvalSupported,
36+ ...rest ,
37+ } ) . promise ;
3238}
3339
3440export async function saveHTMLElementAsPDF (
You can’t perform that action at this time.
0 commit comments