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
378 stars 67 forks source link

GlobalSettings not respected on debian 11 #123

Closed jkl83 closed 11 months ago

jkl83 commented 11 months ago

I think there is a problem with respecting GlobalSettings on debian od linux in general. Below is a comparison of 2 prints. One from application hosted on k8s debian 11, second one hosted on iis on windows. Application code is the same. It looks like this:

image

This code does not change for windows / docker.

Looks like left margin is not respected at all. Furthermore font is smaller on the linux version. Maybe paper size is not respected also?

image

Any ideas? Thank you.

jkl83 commented 11 months ago

The issue was caused by IntelligentShrinking. After disabling it, margins are as expected.

image

HakanL commented 11 months ago

Great that you found the cause! Can we close this issue then?

jkl83 commented 11 months ago

Yes. Thanks.