Skip to content

creating a pdf invoice from html with some placeholders

License

Notifications You must be signed in to change notification settings

fincha/invoice-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

creating a pdf invoice from html with some placeholders

Resources

License

Stars

Watchers

Forks

Packages

No packages published