UNPKG

survey-pdf

Version:

Renders JSON-driven SurveyJS forms and their responses as PDF documents in the browser or Node.js: fillable interactive PDF forms (AcroForm) or static printouts.

22 lines (21 loc) 703 B
import { DocController, IPoint } from '../doc_controller'; import { IPdfBrick } from '../pdf_render/pdf_brick'; import { SurveyPDF } from '../survey'; import { ITextStyle } from '../style/types'; export interface IFlatLicenseStyle { text: ITextStyle; link?: Partial<ITextStyle>; } export declare class FlatLicense { private survey; private controller; private style; constructor(survey: SurveyPDF, controller: DocController, style: IFlatLicenseStyle); private getTextStyle; private getLinkStyle; private getLicenseParts; private splitPartsToFit; private generateLicenseFlats; private centerLineBrick; generateFlats(point: IPoint): Array<IPdfBrick>; }