0.0.1 • Published 9 years ago

pdftk-formfill v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

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.