import { OnChanges, SimpleChanges, EventEmitter } from '@angular/core'; import { CommonService } from '../../services/common.service'; import { PdfDocument, RequestPdf } from 'ng-pli-util'; import { DomSanitizer } from '@angular/platform-browser'; import { ToastrService } from 'ngx-toastr'; import * as i0 from "@angular/core"; /** Pdf visualizer Refactor - TODO improve logic and check the edit functionality */ export declare class PdfMergeVisualizerComponent implements OnChanges { protected commonService: CommonService; private taostrService; sanitization: DomSanitizer; /** Default visualizer height */ static DEFAULT_HEIGHT: number; /** Pdfs to be generated and merged */ lPdfRequest: RequestPdf[]; /** It verifies if is possible to edit html */ enableEdit: boolean; /** title of the pdf */ title: string; /** the height of the pdf canvas */ height: number; /** The filename of the pdf */ filename: string; /** It verifies if it allows to send the email */ enableEmail: boolean; /** The url of the pdf */ urlFile: string; /** It fires when the file has been downloaded */ onDownload: EventEmitter; /** It fires when the name has been sent */ onSendEmail: EventEmitter; /** It fires when the name has been sent */ onPdfRendered: EventEmitter; /** It fires when the html has been modified */ /** Email that will be sended */ email: string; /** base64 as result of html 2 pdf */ base64: string; /** It allows to edit html */ edit: boolean; /** it verifies if component is ready */ ready: boolean; /** It continas the abstraction of pdf document */ pdfDocument: PdfDocument; /** it contains the id of canvas */ id_canvas: string; constructor(commonService: CommonService, taostrService: ToastrService, sanitization: DomSanitizer); ngOnChanges(changes: SimpleChanges): void; /** It generates the pdf */ generatePDF(): void; showBase64Pdf(result: any): void; /** It returns the height */ getHeight(): string; /** Get page info from document, resize canvas accordingly, and render page. */ renderPage(num: any): void; /** * If another page rendering in progress, waits until the rendering is * finised. Otherwise, executes rendering immediately. */ queueRenderPage(num: any): void; /** * Displays previous page. */ onPrevPage(): void; /** * Displays next page. */ onNextPage(): void; /** * Displays Zoom In. */ onZoomIn(): void; /** * Displays Zoom Out. */ onZoomOut(): void; /** It sends the document by email */ sendEmail(): void; /** It fires the event download */ download(): void; /** It fires when the html is changed */ /** it allows to edit */ toggleEdit(): void; /** * it returns if is PdfDocument */ isPdfDocument(): boolean; /** * it returns if is Title */ isTitle(): boolean; /** * it returns if is isPdfDoc */ isPdfDoc(): boolean; /** * it returns if is filename */ isFilename(): boolean; /** * it returns if is enableEdit */ isEnableEdit(): boolean; /** * it returns if is edit */ isEdit(): boolean; /** * it returns if is enableEmail */ isEnableEmail(): boolean; b64toBlob(b64Data: any, contentType?: string, sliceSize?: number): Blob; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }