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

Recommended way to install wkhtmltopdf in a DDEV container? #57

Open
lindseydiloreto opened this issue Sep 17, 2022 · 3 comments
Open
Assignees
Labels
question Further information is requested

Comments

@lindseydiloreto
Copy link

Now that Nitro is dead, and DDEV is the official solution for local development, I feel like you're going to get this question a lot...

What is the recommended way to install wkhtmltopdf in a DDEV container?

I'm scouring the internet, and it's been very difficult to piece together the correct approach. Nothing has worked so far.

@lindseydiloreto
Copy link
Author

I found the answer...

Just add this line to your /ddev/config.yaml file:

webimage_extra_packages: ["wkhtmltopdf"]

Then restart the DDEV container (ddev start).

After that, you will be able to access the following paths:

/usr/bin/wkhtmltopdf
/usr/bin/wkhtmltoimage

Hope that helps! Would be great to see this added to the documentation. 🙂

@darylknight
Copy link

Thanks for this Lindsey - no luck for me though. Adding that to the ddev config and restarting, it's still not available or showing up in /usr/bin/. Running which wkhtmltopdf gives wkhtmltopdf not found

Additionally, including wkhtmltoimage in that config results in not being able to start the container at all, as the startup fails with an error Unable to locate package wkhtmltoimage

I also tried to follow the plugin docs to install in Ubuntu 20.04 inside DDEV and got an error about uninstallable dependencies.

@darylknight
Copy link

Update: Using /usr/bin/wkhtmltopdf actually does work and lets me save the plugin settings. It just doesn't show up there inside DDEV.

image

@andrelopez andrelopez self-assigned this Jun 26, 2023
@andrelopez andrelopez added the question Further information is requested label Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants