Skip to content
 
 

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fdf.js

This is an FDF (Form Data Format) generator for Node.js. FDF is a format you can use to populate Adobe PDF forms.

Installing

 npm install fdf.js --save

Usage

var fdf = require('fdf.js')
  , fs = require('fs');

var data = fdf.generate({
  name: 'Batman',
  type: 'Superhero'
});

fs.writeFile('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 <outputFileName>

This will populate form.pdf with the values.

Flattening

If you are passing in complex objects, they will be flatted when setting the FDF data names. See object-iron for more details.

See Also

About

An FDF (Form Data Format) generator, for populating PDF forms from NodeJS

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages