rdvojmoc / DinkToPdf

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

DinkToPdf .NET Core on Linux without X server. #86

Open milons opened 5 years ago

milons commented 5 years ago

Hi. Do you have experience in using DinkToPdf library on .NET Core Linux (Debian x64) runtime without X server installed? I am creating a WebApp in .NET Core and everything works fine on my development machine (Win 10 x64). When deploying to Linux, generated PDFs looks really different, HTML layout looks like ViewportSize or DPI property of GlobalSetting class is skipped.

Have you ever had such problems?

maikoly1 commented 5 years ago

Same issue here, did u manage to solve this?

RussellSk commented 4 years ago

Same issue here on Mac, set A4 paper size but it is look very different

nileshtiwalkar commented 4 years ago

Same issue here, did u solve this?

sergiocyklpoint commented 3 years ago

The current wkhtmltopdf version uses in DinkToPdf is v0.12.4 and if you read the documentation the ViewportSize is no longer supported since version 0.12.2.4

image

I hope this info helps you!