0.0.11 • Published 10 years ago

invoice-pdf v0.0.11

Weekly downloads
1
License
BSD
Repository
github
Last release
10 years ago

Invoice PDF

Create a stripe invoice pdf from a jade template

Installation

Install Phantom

NPM

$ npm install invoice-pdf

Usage

var user = { // coming from Storify database
		username: 'philmod'
	, ...
	, _stripe : {
			...
		}
};
var options = {};
var invoice = new Invoice(user, options);
invoice.create(function(e,path) {
	// you get the pdf file path
});

Other usages:

  • Render the html:
invoice.render(function(e,html) {

});
  • Create PDF from html:
invoice.jade2pdf(function(e,path) {

});
  • Delete PDF file:
invoice.deletePdf(function(e) {

});
  • Pipe PDF file:
invoice.pipePdf(res);

Run Tests

	$ make test
0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago