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.
31 lines (30 loc) • 1.27 kB
TypeScript
import { ChangeDetectorRef, EventEmitter, NgZone } from '@angular/core';
import { FormDataType, IPDFViewerApplication } from '../public_api';
export type HtmlFormElement = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
export declare class NgxFormSupport {
/** Maps the internal ids of the annotations of pdf.js to their field name */
private formIdToFullFieldName;
private formIdToField;
private radioButtons;
formData: FormDataType;
initialFormDataStoredInThePDF: FormDataType;
formDataChange: EventEmitter<FormDataType>;
private PDFViewerApplication;
ngZone: NgZone;
cdr: ChangeDetectorRef;
reset(): void;
registerFormSupportWithPdfjs(PDFViewerApplication: IPDFViewerApplication): void;
private registerAcroformField;
private registerXFAField;
private getValueOfASelectField;
private getFormValueFromAngular;
private findXFAName;
private findFullXFAName;
private updateAngularFormValueCalledByPdfjs;
private doUpdateAngularFormValue;
updateFormFieldsInPdfCalledByNgOnChanges(previousFormData: Object): void;
private setFieldValueAndUpdateAnnotationStorage;
private populateSelectField;
private findFormIdFromFieldName;
private findRadioButtonGroup;
}