markup-invoice-pdf
v1.0.1
Published
generates a pdf from an input html with some placeholders by using markup.js
Downloads
3
Readme
markup-invoice-pdf
creating a pdf invoice from html with some placeholders
How to use
I use Markup.js as html engine, so if you create your invoice you should follow this guide:
https://github.com/adammark/Markup.js
const invoicePdf = require("markup-invoice-pdf");
let pdfFile = __dirname + "/invoice.pdf";
let htmlFile = __dirname + "/invoice.html";
invoicePdf(htmlFile, pdfFile, { name: 'My Name'})
.then(function (fileUrl) {
console.log("file was created %s", fileUrl)
})
.catch(function(err) {
throw err;
});
});