rdvojmoc / DinkToPdf

C# .NET Core wrapper for wkhtmltopdf library that uses Webkit engine to convert HTML pages to PDF.
MIT License
1.08k stars 412 forks source link

Erro docker linux #175

Open eliseumade opened 1 year ago

eliseumade commented 1 year ago

I can generate the pdf in my development environment, but when I run docker (linux) the request returns this error,

{ "Error": "One or more errors occurred. (Unable to load shared library 'libwkhtmltox' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibwkhtmltox: cannot open shared object file: No such file or directory)" }

Markuzy commented 1 year ago

You may need to add libwkhtmltox to your dockerfile. It may be helpful to minimally post your docker file's base image used or post your dockerfile.

Otherwise, you can search whether the other similar issues and resolution/discussion here are related: https://github.com/rdvojmoc/DinkToPdf/issues?q=is%3Aissue+libwkhtmltox

yozawiratama commented 6 months ago

you can try see this solution

https://github.com/rdvojmoc/DinkToPdf/issues/183