HakanL / WkHtmlToPdf-DotNet

C# .NET Core wrapper for wkhtmltopdf library that uses Webkit engine to convert HTML pages to PDF.
GNU Lesser General Public License v3.0
366 stars 66 forks source link

Not reading settings on alpine #110

Closed ozzyDrive closed 1 month ago

ozzyDrive commented 1 year ago

Hi,

I stumbled on this problem when trying to switch our base image from Debian to Alpine due to security issues and it seems it is replicated in the example https://github.com/HakanL/WkHtmlToPdf-DotNet/blob/master/src/TestConsoleAppDockerAlpine/Dockerfile

The GlobalSettings object passed to HtmlToPdfDocument seem to have no effect on the actual output. I have tried changing the DPI, orientation and paper size. All of these do work in the Debian image as well as running it as a console application.

I have tried different dependencies from different sources but honestly it has just been trial and error. What could it be missing?

HakanL commented 1 year ago

Never heard of this before, must be some kind of missing dependency would be my guess, but I can't say what. If you find out feel free to share your findings.

jkl83 commented 9 months ago

Try disabling IntelligentShrinking. Worked for me on debian.

image