I tried to convert html to pdf by using DinkToPDF.
Unfortunately the pdf result is different than source HTML.
Here are my DinkToPdf settings:
var globalSettings = new GlobalSettings
{
ColorMode = ColorMode.Color,
Orientation = Orientation.Portrait,
PaperSize = PaperKind.A4,
DocumentTitle = title,
Out = string.Empty,
};
var objectSettings = new ObjectSettings
{
PagesCount = true,
HtmlContent = htmlBody,
WebSettings = { DefaultEncoding = "utf-8" }
};
Sample Source HTML
Sample PDF result
Is it a bug? Or is there something wrong with my code?