1.0.1 • Published 8 years ago

markup-invoice-pdf v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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;
	});
});