import { OnInit, OnChanges, SimpleChanges, EventEmitter } from '@angular/core'; import { CommonService } from '../../services/common.service'; import { PdfDocument } from 'ng-pli-util'; import { FileService } from '../../services/file.service'; import { DomSanitizer } from '@angular/platform-browser'; import { ToastrService } from 'ngx-toastr'; import * as i0 from "@angular/core"; export declare class PdfVisualizerComponent implements OnInit, OnChanges { protected commonService: CommonService; sanitization: DomSanitizer; private taostrService; private fileService; static DEFAULT_HEIGHT: number; /** text html will become pdf */ html: string; /** text header will become pdf */ header: string; /** text footer will become pdf */ footer: string; /** it contains the marginTop will be applied to the pdf */ marginTop: number; /** it contains the marginRight will be applied to the pdf */ marginRight: number; /** it contains the marginBottom will be applied to the pdf */ marginBottom: number; /** it contains the marginLeft will be applied to the pdf */ marginLeft: number; /** It contains the font of the html */ font: string; /** It contains the pdf orientation */ orientation: number; /** It contains the pdf size */ size: number; /** show pager */ showPager: boolean; /** repeat header */ repeatHeader: boolean; /** repeat footer*/ repeatFooter: boolean; /** Header height */ headerHeight: number; /** Footer height */ footerHeight: number; /** 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; /** It fires when the file has been downloaded */ onDownload: EventEmitter; /** It fires when the name has been sent */ onSendEmail: EventEmitter; /** It fires when the html has been modified */ onChange: EventEmitter; /** It contains the lang of the pdf */ lang: string; /** The url of the pdf */ urlFile: string; email: string; /** base64 as result of html 2 pdf */ base64: string; /** 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; /** It allows to edit html */ edit: boolean; isFullscreen: boolean; constructor(commonService: CommonService, sanitization: DomSanitizer, taostrService: ToastrService, fileService: FileService); ngOnChanges(changes: SimpleChanges): void; /** It generates the pdf */ generatePDF(): void; showBase64Pdf(result: any): void; testBase64ToFile2(): void; testEnvioDoc(fileReturn: any, fileName: string): 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; ngOnInit(): void; /** It sends the document by email */ sendEmail(): void; /** It fires the event download */ download(): void; /** It fires when the html is changed */ change(): void; /** 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; toggleFullscreen(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }