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

WKhtmltopdf not able to run as headless in Debian OS #43

Open
chungonn opened this issue Jul 18, 2018 · 1 comment
Open

WKhtmltopdf not able to run as headless in Debian OS #43

chungonn opened this issue Jul 18, 2018 · 1 comment

Comments

@chungonn
Copy link

Hi
I was not able to run sPDF in Ubuntu 18.04 as WKHtmltopdf is unable to run in Debian as headless. The suggested approach was to use xvfb.
Could sPDF be improved to allow it to run with xvfb? Below is a sample of the command
xvfb-run -- /usr/bin/wkhtmltopdf --lowquality http://www.google.com google.pdf

I did a fork of the project. I can't a good place to expand the api, hence i did a hardcode to add "-- /usr/bin/wkhtmlpdf" as the argument, where the path is "xvfb-run".

@chungonn
Copy link
Author

Hi Federico,
I have create a patch to allow auto detect of xvfb-run, this would allow the sPDF to run in a headless debian environment and without any change to the APIs

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

1 participant