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.
35 lines (34 loc) • 1.23 kB
TypeScript
import { IQuestion, ItemValue } from 'survey-core';
import { IRect, DocController } from '../doc_controller';
import { PdfBrick } from './pdf_brick';
export interface IRadiogroupWrapContext {
question: IQuestion;
readOnly: boolean;
}
export declare class RadioGroupWrap {
name: string;
private controller;
private context;
private _radioGroup;
constructor(name: string, controller: DocController, context: IRadiogroupWrapContext);
addToPdf(color: string): void;
get radioGroup(): any;
get readOnly(): boolean;
}
export interface IRadioGroupItemBrickContext {
question: IQuestion;
checked: boolean;
index: number;
item: ItemValue;
}
export declare class RadioItemBrick extends PdfBrick {
private context;
private radioGroupWrap;
private static readonly RADIOMARKER_READONLY_SYMBOL;
private static readonly RADIOMARKER_READONLY_FONT;
static readonly RADIOMARKER_READONLY_FONT_SIZE_SCALE: number;
constructor(controller: DocController, rect: IRect, context: IRadioGroupItemBrickContext, radioGroupWrap: RadioGroupWrap);
protected getShouldRenderReadOnly(): boolean;
renderInteractive(): Promise<void>;
renderReadOnly(): Promise<void>;
}