UNPKG

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.

17 lines (16 loc) 970 B
import { IQuestion, ItemValue, QuestionRatingModel } from 'survey-core'; import { SurveyPDF } from '../survey'; import { IPoint, DocController } from '../doc_controller'; import { FlatRadiogroup } from './flat_radiogroup'; import { IPdfBrick } from '../pdf_render/pdf_brick'; import { CompositeBrick } from '../pdf_render/pdf_composite'; export declare class FlatRating extends FlatRadiogroup { protected survey: SurveyPDF; protected controller: DocController; protected questionRating: QuestionRatingModel; constructor(survey: SurveyPDF, question: IQuestion, controller: DocController); protected generateFlatHorisontalComposite(point: IPoint, item: ItemValue, index: number): Promise<IPdfBrick>; protected generateFlatComposite(point: IPoint, item: ItemValue, index: number): Promise<IPdfBrick>; protected generateHorisontallyItems(point: IPoint): Promise<CompositeBrick[]>; generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>; }