pdftk-formfill

0.0.1 • Public • Published

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.

/pdftk-formfill/

    Package Sidebar

    Install

    npm i pdftk-formfill

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • pakmanager