Open lemkepf opened 6 years ago
I think we already send these flags to the phantom https://github.com/pofider/phantom-html-to-pdf/blob/master/lib/dedicatedProcessStrategy.js#L18
Can you make sure that changing those args will fix your issues? I would love to make this configurable, but too busy at this moment. However will happily merge PRs if provided.
Yea, I modified and it still didn't work. I switched over to Chrome-PDF and it worked flawlessly first try.... so that's something I guess.
There are news about this issue? I'm having the same problem.
change this on file
jsreport/node_modules/phantom-html-to-pdf/lib/dedicatedProcessStrategy.js
before edit config
var childArgs = [
'--ignore-ssl-errors=true',
'--web-security=false',
'--ssl-protocol=any'
];
==================== after change on line --ssl-protocol from (any to tlsv1)
var childArgs = [
'--ignore-ssl-errors=true',
'--web-security=false',
'--ssl-protocol=tlsv1'
];
=========== restart jsreport service and it worked!! thanks @lemkepf
no didn't work
We have an image used in a template that is hosted on AWS Cloudfront using SNI SSL. Phantom is throwing an error downloaded that:
We'd love to be able to pass in some CLI Params to Phantom to bypass this error: '--ignore-ssl-errors=true', '--ssl-protocol=tlsv1', '--web-security=false'
I don't see any documentation on if that is even possible. Thanks for the help!