survey-pdf
Version:
A UI component that uses SurveyJS form JSON schemas to render forms as PDF documents. It populates PDF fields with data collected using SurveyJS Form Library and lets you export your SurveyJS forms as editable or pre-filled PDFs.
32 lines (31 loc) • 1.19 kB
TypeScript
import { IQuestion } from 'survey-core';
import { IRect, DocController } from '../doc_controller';
import { IPdfBrick, PdfBrick, TranslateXFunction } from './pdf_brick';
export interface ITextFieldBrickOptions {
isReadOnly: boolean;
fieldName: string;
shouldRenderBorders: boolean;
value?: string;
placeholder?: string;
inputType?: string;
isMultiline?: boolean;
}
export declare class TextFieldBrick extends PdfBrick {
protected question: IQuestion;
protected options: ITextFieldBrickOptions;
constructor(question: IQuestion, controller: DocController, rect: IRect, options: ITextFieldBrickOptions);
private renderColorQuestion;
renderInteractive(): Promise<void>;
protected shouldRenderFlatBorders(): boolean;
protected getShouldRenderReadOnly(): boolean;
private _textBrick;
get textBrick(): IPdfBrick;
set textBrick(val: IPdfBrick);
renderReadOnly(): Promise<void>;
unfold(): IPdfBrick[];
translateX(func: TranslateXFunction): void;
protected setXLeft(val: number): void;
protected setXRight(val: number): void;
protected setYTop(val: number): void;
protected setYBottom(val: number): void;
}