IPDFFormFillerOptions
An object that configures the PDFFormFiller
plugin.
Pass this object to the PDFFormFiller
constructor:
const form = new PDFFormFiller.PDFFormFiller(pdfFormFillerOptions);
// In modular applications:
import { PDFFormFiller } from "survey-pdf/pdf-form-filler";
const form = new PDFFormFiller(pdfFormFillerOptions);
An object with data used to populate the PDF document.
Use the SurveyModel
's data
property to access this data object.
- Type:
- any readonly
- Implemented in:
- IPDFFormFillerOptions
An object that maps survey fields to PDF form fields. Object keys are survey field names and object values are PDF form field IDs.
The easiest way to build a field map is to access the data object with respondent answers using the SurveyModel
's data
property and replace the values with the PDF form field IDs. To find the IDs, open your PDF document in any editor that allows viewing them. Note that certain field types, such as Checkboxes, Dynamic Matrix, and Dynamic Panel require a different configuration. Refer to the following demos for code examples.
- Type:
- any readonly
- Implemented in:
- IPDFFormFillerOptions
An adapter that serves as a bridge between the PDFFormFiller
plugin and a specific third-party library.
SurveyJS PDF Generator provides adapters for pdf-lib
and PDF.js out of the box. Pass the libraries to the PDFLibAdapter
or PDFJSAdapter
constructor and assign the resulting instance to the pdfLibraryAdapter
property.
- Type:
- IPDFFormAdapter readonly
- Implemented in:
- IPDFFormFillerOptions
A PDF document with interactive form fields that you want to fill.
Because this document is passed on to a third-party library, the type of accepted values depends on this library.
- Type:
- any readonly
- Implemented in:
- IPDFFormFillerOptions
Copyright © 2025 Devsoft Baltic OÜ. All rights reserved.