jsreport / jsreport-phantom-pdf

jsreport recipe which is rendering pdf from html using phantomjs
GNU Lesser General Public License v3.0
11 stars 8 forks source link

Added resource timeout setting to recipe #4

Closed paulJordaan closed 8 years ago

paulJordaan commented 8 years ago

Added the resource timeout setting available in phantom-html-to-pdf to be used in config or UI. config example:

client.render({
    template: { 
        shortid: '41ly53C_2e',

        phantom: {
                resourceTimeout: '18000',
                blockJavaScript: 'true',
            }
}}, function(err, response) {

});
pofider commented 8 years ago

Thank you.

The last thing is probably to declare resourceTimeout in the entity settings. This allows it to be saved and accessed through OData. https://github.com/jsreport/jsreport-phantom-pdf/blob/master/lib/phantom.js#L33

pofider commented 8 years ago

NPM jsreport-phantom-pdf@0.4.2 jsreport@0.13.2