pofider / phantom-html-to-pdf

Highly scalable html to pdf conversion using phantom workers
MIT License
159 stars 33 forks source link

body.setting.resourceTimeout causing ajax and script references error #7

Closed walter-psjr closed 8 years ago

walter-psjr commented 9 years ago

At times, script references are not loaded and ajax requests return http status 0 with body.settings.resourceTimeout 1000.

The idea is that this timeout is configurable?

https://github.com/walter-psjr/phantom-html-to-pdf/commit/7dde10d6204d015d8260a771a305fac9c4082f13

bjrmatos commented 8 years ago

the resource timeout is already configurable

var conversion = require("phantom-html-to-pdf")();

conversion({  
  // other options...
  settings: {
    resourceTimeout : 180000
  }
// other options..
}, function(err, pdf) {
});