node-render
This module allow to you render any string (specially html) using phantomJs.
Installation
$ npm install --save node-render
Usage
The new version used promises in instance of callbacks.
var nRender = ; nRender;nRender;
input = '<h1>Any string</<h1>'
options = null || myOptions // where myOptions is a object
output = '/path/to/my/output/file'
defaultOptions = paperSize: orientation: 'portrait' format: 'A4' viewportSize: width: 9921 height: 14031 margin: '0px' onConsoleMessage: undefined quality: 100 format: 'pdf' // if you are using renderToBuffer this is PNG root: '/' ;
License
MIT © Alex Matos