Platform: Windows 10 x64
Paper size is 100m x 50 mm ~= 3.97in x 1.97in
The page contains an image with style="width: 98mm". The resulting PDF shows ~20% smaller image.
When I set img style="width: 120mm" then I get almost what I need.
I've tried removing everything and just drawing some hr style="width: 100mm" ... hr style="width: 130mm". In that case only 130mm comes to look like it should be.
var doc = new HtmlToPdfDocument()
{
GlobalSettings =
{
ColorMode = ColorMode.Grayscale,
PaperSize = new PechkinPaperSize("3.97in", "1.97in"),
Margins = new MarginSettings(0,0,0,0),
Out = filePath
},
Objects = {
new ObjectSettings() {
HtmlContent = htmlContents,
WebSettings = { DefaultEncoding = "utf-8" }
}
}
};
_converter.Convert(doc);
Platform: Windows 10 x64 Paper size is 100m x 50 mm ~= 3.97in x 1.97in
The page contains an image with style="width: 98mm". The resulting PDF shows ~20% smaller image.
When I set img style="width: 120mm" then I get almost what I need.
I've tried removing everything and just drawing some hr style="width: 100mm" ... hr style="width: 130mm". In that case only 130mm comes to look like it should be.
Found this: https://github.com/rdvojmoc/DinkToPdf/issues/42 Tried adjusting Dpi to 380/600 Nothing changed