UNPKG

survey-pdf

Version:

survey.pdf.js is a SurveyJS PDF Library. It is a easy way to export SurveyJS surveys to PDF. It uses JSON for survey metadata.

32 lines (31 loc) 1.19 kB
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; }