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.

16 lines (15 loc) 710 B
import { IQuestion, QuestionHtmlModel } from 'survey-core'; import { SurveyPDF } from '../survey'; import { IPoint, DocController } from '../doc_controller'; import { FlatQuestion } from './flat_question'; import { IPdfBrick } from '../pdf_render/pdf_brick'; export type IHTMLRenderType = 'auto' | 'standard' | 'image'; export declare class FlatHTML extends FlatQuestion { protected survey: SurveyPDF; protected question: QuestionHtmlModel; constructor(survey: SurveyPDF, question: IQuestion, controller: DocController); private chooseRender; private static correctHtmlRules; protected correctHtml(html: string): string; generateFlatsContent(point: IPoint): Promise<IPdfBrick[]>; }