diff --git a/lib/core/src/lib/viewer/components/pdf-viewer/pdf-viewer.component.ts b/lib/core/src/lib/viewer/components/pdf-viewer/pdf-viewer.component.ts index 4a97175170..1014f9ad19 100644 --- a/lib/core/src/lib/viewer/components/pdf-viewer/pdf-viewer.component.ts +++ b/lib/core/src/lib/viewer/components/pdf-viewer/pdf-viewer.component.ts @@ -181,7 +181,8 @@ export class PdfViewerComponent implements OnChanges, OnDestroy { const pdfOptions = { ...this.pdfjsDefaultOptions, data: reader.result, - withCredentials: this.appConfigService.get('auth.withCredentials', undefined) + withCredentials: this.appConfigService.get('auth.withCredentials', undefined), + isEvalSupported: false }; this.executePdf(pdfOptions); }; @@ -193,7 +194,8 @@ export class PdfViewerComponent implements OnChanges, OnDestroy { const pdfOptions: any = { ...this.pdfjsDefaultOptions, url: urlFile.currentValue, - withCredentials: this.appConfigService.get('auth.withCredentials', undefined) + withCredentials: this.appConfigService.get('auth.withCredentials', undefined), + isEvalSupported: false }; if (this.cacheType) { pdfOptions.httpHeaders = {