pdftk-formfill
v0.0.1
Published
Form fill wrapper around PDFtk's implementation using streams
Downloads
3
Readme
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.