hi,
in a blazor server app i define htmlconvert with WebKitConverterSettings:
WebKitConverterSettings webKitSettings = new WebKitConverterSettings();
webKitSettings.WebKitPath = webkitFolder;
webKitSettings.EnableJavaScript = true;
webKitSettings.Margin = new PdfMargins { All = 40 };
webKitSettings.EnableRepeatTableHeader=true;
webKitSettings.MediaType = MediaType.Print;
webKitSettings.PdfPageSize = PdfPageSize.A4;
htmlConverter.ConverterSettings = webKitSettings;
using (PdfDocument pdfDocument = htmlConverter.ConvertPartialHtml(url,DivName))
{
using (MemoryStream stream = new MemoryStream())
{
pdfDocument.Save(stream);
pdfDocument.Close(true);
return stream;
}
}
webKitSettings.EnableRepeatTableHeader=true; the header repeat every page, but is overlaping from second page with the content, and pdf has additional page at end
i don't sure where is the problem, the rest of convert pdf is perfect
attached, image of overlaping and file razor to convert,
also i have try with blink engine but I can't get it to use the css
thanks in advance
Attachment:
headeroverlap_fb6434b4_7c8e56e1.7z