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.
16 lines (15 loc) • 599 B
TypeScript
import { ITextStyle } from '../style/types';
import { IPoint, IRect, DocController } from '../doc_controller';
import { IPdfBrickOptions, PdfBrick } from './pdf_brick';
export interface ITextBrickOptions extends IPdfBrickOptions {
text: string;
}
export declare class TextBrick extends PdfBrick {
options: ITextBrickOptions;
style: ITextStyle;
protected align: any;
constructor(controller: DocController, rect: IRect, options: ITextBrickOptions, style: ITextStyle);
private escapeText;
renderInteractive(): Promise<void>;
protected alignPoint(rect: IRect): IPoint;
}