ngx-extended-pdf-viewer
Version:
Embedding PDF files in your Angular application. Highly configurable viewer including the toolbar, sidebar, and all the features you're used to.
35 lines (34 loc) • 2.31 kB
TypeScript
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges, TemplateRef } from '@angular/core';
import { NgxExtendedPdfViewerService } from '../../ngx-extended-pdf-viewer.service';
import { PdfShyButtonService } from '../../toolbar/pdf-shy-button/pdf-shy-button-service';
import { PDFNotificationService } from './../../pdf-notification-service';
import * as i0 from "@angular/core";
export declare class PdfSecondaryToolbarComponent implements OnChanges, AfterViewInit, OnDestroy {
private element;
notificationService: PDFNotificationService;
private platformId;
pdfShyButtonService: PdfShyButtonService;
private ngxExtendedPdfViewerService;
customSecondaryToolbar: TemplateRef<any> | undefined;
secondaryToolbarTop: any;
mobileFriendlyZoomScale: number;
localizationInitialized: boolean;
spreadChange: EventEmitter<"off" | "even" | "odd">;
disablePreviousPage: boolean;
disableNextPage: boolean;
private classMutationObserver;
private PDFViewerApplication;
constructor(element: ElementRef, notificationService: PDFNotificationService, platformId: Object, pdfShyButtonService: PdfShyButtonService, ngxExtendedPdfViewerService: NgxExtendedPdfViewerService);
onPdfJsInit(): void;
updateUIState(): void;
onSpreadChange(newSpread: 'off' | 'odd' | 'even'): void;
ngOnChanges(changes: SimpleChanges): void;
onResize(): void;
ngAfterViewInit(): void;
ngOnDestroy(): void;
checkVisibility(): void;
private checkVisibilityRecursively;
onClick(htmlevent: Event, action: undefined | ((htmlevent: Event, secondaryToolbar: boolean) => void), eventBusName?: string, closeOnClick?: boolean): void;
static ɵfac: i0.ɵɵFactoryDeclaration<PdfSecondaryToolbarComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<PdfSecondaryToolbarComponent, "pdf-secondary-toolbar", never, { "customSecondaryToolbar": { "alias": "customSecondaryToolbar"; "required": false; }; "secondaryToolbarTop": { "alias": "secondaryToolbarTop"; "required": false; }; "mobileFriendlyZoomScale": { "alias": "mobileFriendlyZoomScale"; "required": false; }; "localizationInitialized": { "alias": "localizationInitialized"; "required": false; }; }, { "spreadChange": "spreadChange"; }, never, never, false, never>;
}