toner-phantom

0.1.2 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    3
  • 0.1.1
    0
  • 0.1.0
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i toner-phantom

Weekly Downloads

2

Version

0.1.2

License

MIT

Last publish

Collaborators

  • pofider