Szpadel/chrome-headless-render-pdf

Can I use it with Apache/PHP?

geri777 opened this issue · 1 comments

I would like to run this module ot of PHP (maybe with exec()) - how would its installation llok like for me then?

Here's how I do it:
exec("/usr/bin/node /wc2/converters/chrome-headless-render-pdf/cli/chrome-headless-render-pdf --chrome-option=--no-sandbox --url http://127.0.0.1:9200/" . $temp_file_name . ".html --pdf $exportPath" . $temp_file_name . ".pdf");