1.1.0 • Published 6 years ago

fill-pdf v1.1.0

Weekly downloads
12,218
License
MIT
Repository
github
Last release
6 years ago

fill-pdf

Build Status

A node module to fill out PDF forms (utf8 compatible).

It uses pdftk to fill out PDF forms.

Installation

npm install fill-pdf

Dependencies

You need to have the pdftk binary in your PATH.

Install on Mac OSX

Install on Ubuntu

sudo apt-get install pdftk

Usage example (with express)

var fillPdf = require("fill-pdf");
var formDate = { FieldName: 'Text to put into form field' };
var pdfTemplatePath = "templates.pdf";

app.get('/filled_form.pdf', function(req, res) {
  fillPdf.generatePdf(formData, pdfTemplatePath, function(err, output) {
    if ( !err ) {
      res.type("application/pdf");
      res.send(output);
    }
  });
});

Acknowledgements

Based on utf8-fdf-generator

1.1.0

6 years ago

1.0.0

7 years ago

0.5.0

8 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.4

8 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.3

9 years ago

0.0.2

10 years ago

0.0.1

10 years ago