mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[AAE-30877] - Checking if textlayerrendered is triggered
This commit is contained in:
committed by
Wojciech Duda
parent
34d55b5273
commit
7311879ab0
@@ -139,6 +139,7 @@ export class PdfViewerComponent implements OnChanges, OnDestroy {
|
||||
private pdfjsWorkerDestroy$ = new Subject<boolean>();
|
||||
|
||||
constructor(private dialog: MatDialog, private renderingQueueServices: RenderingQueueServices, private appConfigService: AppConfigService) {
|
||||
(window as any).pdfWorkerSrc = 'assets/pdfjs/pdf.worker.mjs';
|
||||
// needed to preserve "this" context
|
||||
this.onPageChange = this.onPageChange.bind(this);
|
||||
this.onPagesLoaded = this.onPagesLoaded.bind(this);
|
||||
@@ -213,9 +214,6 @@ export class PdfViewerComponent implements OnChanges, OnDestroy {
|
||||
}
|
||||
|
||||
executePdf(pdfOptions: any) {
|
||||
//eslint-disable-next-line
|
||||
console.log('pdfjsLib', pdfjsLib);
|
||||
pdfjsLib.GlobalWorkerOptions.workerSrc = 'assets/pdfjs/pdf.worker.mjs';
|
||||
//eslint-disable-next-line
|
||||
console.log('Worker', pdfjsLib.GlobalWorkerOptions.workerSrc);
|
||||
|
||||
@@ -255,7 +253,8 @@ export class PdfViewerComponent implements OnChanges, OnDestroy {
|
||||
viewer,
|
||||
renderingQueue: this.renderingQueueServices,
|
||||
eventBus: this.eventBus,
|
||||
annotationMode: AnnotationMode.DISABLE
|
||||
annotationMode: AnnotationMode.DISABLE,
|
||||
textLayerMode: 1
|
||||
});
|
||||
|
||||
// cspell: disable-next
|
||||
|
Reference in New Issue
Block a user