Rajni Aug,23 2017
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.
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.