- August 24, 2017
- Posted by: iSummation Team
- Category: Uncategorized
Once trying, we experienced an issue in generating PDF file when HTML file size is more than 3 MB.
We got to understand about default time out maximum to 30 Seconds for PhantomJS, So in a case when HTML file size is larger than 3 MB, PhantomJS generates timeout error and node-pdf return response as a corrupted PDF file.
Error when loading gists from https://gist.github.com/.this.options.timeout = parseInt(this.options.timeout) || 30000
Fixing PhantomJS timeout issue I need to override default timeout parameter by passing timeout attributes in option.
So by increasing PhantomJS timeout I’ve fixed big size file issue.