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>();
|
private pdfjsWorkerDestroy$ = new Subject<boolean>();
|
||||||
|
|
||||||
constructor(private dialog: MatDialog, private renderingQueueServices: RenderingQueueServices, private appConfigService: AppConfigService) {
|
constructor(private dialog: MatDialog, private renderingQueueServices: RenderingQueueServices, private appConfigService: AppConfigService) {
|
||||||
|
(window as any).pdfWorkerSrc = 'assets/pdfjs/pdf.worker.mjs';
|
||||||
// needed to preserve "this" context
|
// needed to preserve "this" context
|
||||||
this.onPageChange = this.onPageChange.bind(this);
|
this.onPageChange = this.onPageChange.bind(this);
|
||||||
this.onPagesLoaded = this.onPagesLoaded.bind(this);
|
this.onPagesLoaded = this.onPagesLoaded.bind(this);
|
||||||
@@ -213,9 +214,6 @@ export class PdfViewerComponent implements OnChanges, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
executePdf(pdfOptions: any) {
|
executePdf(pdfOptions: any) {
|
||||||
//eslint-disable-next-line
|
|
||||||
console.log('pdfjsLib', pdfjsLib);
|
|
||||||
pdfjsLib.GlobalWorkerOptions.workerSrc = 'assets/pdfjs/pdf.worker.mjs';
|
|
||||||
//eslint-disable-next-line
|
//eslint-disable-next-line
|
||||||
console.log('Worker', pdfjsLib.GlobalWorkerOptions.workerSrc);
|
console.log('Worker', pdfjsLib.GlobalWorkerOptions.workerSrc);
|
||||||
|
|
||||||
@@ -255,7 +253,8 @@ export class PdfViewerComponent implements OnChanges, OnDestroy {
|
|||||||
viewer,
|
viewer,
|
||||||
renderingQueue: this.renderingQueueServices,
|
renderingQueue: this.renderingQueueServices,
|
||||||
eventBus: this.eventBus,
|
eventBus: this.eventBus,
|
||||||
annotationMode: AnnotationMode.DISABLE
|
annotationMode: AnnotationMode.DISABLE,
|
||||||
|
textLayerMode: 1
|
||||||
});
|
});
|
||||||
|
|
||||||
// cspell: disable-next
|
// cspell: disable-next
|
||||||
|
Reference in New Issue
Block a user