import * as PDFJS from "pdfjs-dist"; import "pdfjs-dist/build/pdf.worker"; import { FormFields, FormGroup } from "../types"; export declare class PdfService { protected pdfJs: typeof PDFJS; constructor(workerSrc?: string); getPdfAnnotations(url: string, group?: boolean): Promise; protected groupRadioButtons(formGroups: FormGroup[]): FormGroup[]; protected transformPdfAnnotations(formFields: FormFields[]): FormFields[]; protected splitFieldName(formField: FormFields): { groupNames: string[]; customOrderPosition: number | undefined; }; /** * If the fieldName is [title][desciption][newFieldName] all fields with the same title will be grouped * You can also add an order position like this [title][desciption][newFieldName][10] and all fields with an order position will be sorted insite the group * @param formFields */ protected groupByFieldNames(formFields: FormFields[]): FormGroup[]; protected transformPdfAnnotation(formField: FormFields, index: number): FormFields; }