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.
26 lines (22 loc) • 796 B
JavaScript
/*!
* surveyjs - SurveyJS PDF library v3.0.2
* Copyright (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
*/
import { P as PDFFormFillerBase } from './pdf-form-filler-shared.mjs';
export { a as PDFJSAdapter, b as PDFLibAdapter } from './pdf-form-filler-shared.mjs';
import { writeFile } from 'fs';
class PDFFormFiller extends PDFFormFillerBase {
async saveToFile(pdfBytes, fileName) {
return new Promise((resolve, reject) => {
writeFile(fileName, pdfBytes, (err) => {
if (err)
reject(err);
else
resolve();
});
});
}
}
export { PDFFormFiller };
//# sourceMappingURL=pdf-form-filler.node.mjs.map