Skip to content

jsreport/toner-phantom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#toner-phantom

Build Status

Toner recipe for printing html into pdf using phantomjs

npm install toner-phantom
toner.recipe("phantom-pdf", require("toner-phantom")({..});

toner.render({
	template: {
		content: "fooo",
		engine: "jsrender",
		phantom: {
			header: "{{:name}}"
		}		
	},
	data : {
		name: "Jan Blaha"
	}
});

This recipe is wrapper around phantom-html-to-pdf. All the options passed to template.phantom will be forwarded into the corresponding package. See its documentation for all options.