Hello
I am using QtBinariesWindows WebKit for converting HTML to PDF
my HTML page contain several DIVs with class="row", with several InputText fields .
when I convert the URL with my data to PDF, instead of showing me the row with horizontal InputText, its show me the inputText verticaly
this is the form
and this is the output pdf
this is the code I use for saving the PDF:
//Initialize HTML to PDF converter
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
WebKitConverterSettings settings = new WebKitConverterSettings();
//Set WebKit path
settings.WebKitPath = Directory.GetCurrentDirectory() + @"\QtBinariesWindows\"; /*Directory.GetCurrentDirectory() +*/
settings.SinglePageLayout = Syncfusion.Pdf.HtmlToPdf.SinglePageLayout.FitWidth;
settings.Orientation = PdfPageOrientation.Landscape;
//Assign WebKit settings to HTML converter
htmlConverter.ConverterSettings = settings;
Syncfusion.Pdf.Graphics.PdfLayoutResult layoutResult = null;
//Convert URL to PDF
PdfDocument document = htmlConverter.ConvertPartialHtml(UriHelper.Uri.ToString(), "printable", out layoutResult);
string driverID = DriverFileModel.IDnumber;
fileToSave = driverID + " " + "תיק נהג";
if (File.Exists(Directory.GetCurrentDirectory() + @"\PDF\" + fileToSave + ".pdf"))
{
File.Delete(Directory.GetCurrentDirectory() + @"\PDF\" + fileToSave + ".pdf");
}
FileStream fileStream = new FileStream(Directory.GetCurrentDirectory() + @"\PDF\" + fileToSave + ".pdf", FileMode.CreateNew, FileAccess.ReadWrite);
fileToSave = Directory.GetCurrentDirectory() + @"\PDF\" + fileToSave + ".pdf";
//Save and close the PDF document
document.Save(fileStream);
document.Close(true);
fileStream = null;
thank you for the quick reply