i am trying to convert html string to pdf. below is my code.
string strFilePath = @"C:\Office\temp\temp\test1.html";
string strHtmlContent = File.ReadAllText(strFilePath);
HtmlToPdfConverter htmlconverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit);
WebKitConverterSettings settings = new WebKitConverterSettings();
string WebKitBinaryPath = "../../QtBinaries/";
settings.WebKitPath = WebKitBinaryPath;
htmlconverter.ConverterSettings = settings;
PdfDocument pdfDocument = htmlconverter.Convert(strHtmlContent, "");
string pdffile = @"C:\Office\temp\Maildownloads1\test111.pdf";
pdfDocument.Save(pdffile);
pdfDocument.Close();
pdfDocument.Dispose();
when "htmlconverter.Convert()" execute it throws the above mentioned exception.
"this application failed to start because it could no find or load the Qt platform plugin "windows""
Any idea how to fix it.
i am using "Compression, HTMLConverter,pdf" base dlls.
Sarath.