I am trying to convert html string to pdf using webKit code sample and the pdf is not like the css design in the html file and it is nor covering the whole page.
The html plain text file and the Pdf result is attached.
Any Ideas ?
the code is:
string html;
string htmlPath = @"C:\Temp\Document.html";
html = System.IO.File.ReadAllText(htmlPath);
htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit);
WebKitConverterSettings settings = new WebKitConverterSettings();
settings.WebKitPath = @"C:\Temp\QtBinaries\";
htmlConverter.ConverterSettings = settings;
PdfDocument document = htmlConverter.Convert(html, "");
document.Save(@"c:\temp\1.pdf");
document.Close(true);
Attachment:
pdf_f2701906.zip