PDF file form filler file (FDF) generator.
Generates FDF files based on UTF-16 (you don't have to convert anything) so they support UTF-8 characters.
- For more information see the Home Page.
- Or the Repository
Its is synchronous, just call it, upon return, the file will be already created and you can use it:
generator = require('utf8-fdf-generator').generator;
generator({ myField01: "Gabriel Medina", myField02: "Ciudad Juárez, Chihuahua, México" }, "output.fdf");
// Do whatever you need with file output.fdf here.
You usually do something like:
user@server:~ $ pdftk template.pdf fill_form generated.fdf output final_output.pdf flatten
Where:
template.pdf
is the original PDF formgenerated.fdf
is the file we generatedfinal_output.pdf
is the PDF file with fields filled using data fromgenerated.fdf
Regards,
Twitter: @Rha7
MIT
Free Software, Hell Yeah!