This is an FDF (Form Data Format) generator for Node.js. FDF is a format you can use to populate Adobe PDF forms.
npm install fdf
var fdf = require('fdf')
, fs = require('fs');
var data = fdf.generate({
name: 'Batman',
type: 'Superhero'
});
fs.writeFileSync('data.fdf', data);
A typical way to use the resulting fdf is to auto-fill a PDF form:
pdftk form.pdf fill_form data.fdf output - flatten
This will populate form.pdf with the values.
- fdfgen - in Python - https://github.com/ccnmtl/fdfgen
- koivi createPDF - in PHP - http://koivi.com/fill-pdf-form-fields/tutorial.php
- XFDF for Node - https://www.npmjs.com/package/xfdf