Skip to content

Form fill wrapper around PDFtk's implementation using streams

License

Notifications You must be signed in to change notification settings

hadynz/pdftk-formfill

Repository files navigation

pdftk-formfill

Form fill wrapper around PDFtk's implementation using streams

Installation

npm install pdftk-formfill

Usage

var fs = require('fs');
var pdftkFormFill = require('PDFtkFormFill');

var outputPath = './output.pdf';
var sampleData = {
  ...
};

pdftkFormFill('./sample.pdf', sampleData, function(err, out, code){
  fs.writeFile(outputPath, out, function(err) {
    if(err) {
      return console.log(err);
    }
    console.log("The file was saved!");
  });
});

License

Copyright (c) 2015 Hady Osman
Licensed under the MIT license.

About

Form fill wrapper around PDFtk's implementation using streams

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published