Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I use it with Apache/PHP? #52

Open
geri777 opened this issue May 10, 2019 · 1 comment
Open

Can I use it with Apache/PHP? #52

geri777 opened this issue May 10, 2019 · 1 comment

Comments

@geri777
Copy link

geri777 commented May 10, 2019

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

@WC2-Foundation
Copy link

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");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants