Dear team,
I am having a html with form fields and I tried to convert it into a pdf using below code and it is converted fine. but no form fields read from html into PDF. please do the needful.
<form action="">
<fieldset>
<label for="fname">First name:</label>
<input type="text" id="fname" name="fname"><br><br>
<label for="lname">Last name:</label>
<input type="text" id="lname" name="lname"><br><br>
<label for="email">Email:</label>
<input type="email" id="email" name="email"><br><br>
</fieldset>
</form>
public string htmltopdf(string htmlFileinput)
{
string htmlString = File.ReadAllText(htmlFileinputpath);
Spire.License.LicenseProvider.SetLicenseKey(SpireLicenseKey);
Spire.Pdf.HtmlConverter.Qt.HtmlConverter.PluginPath = SpirePluginsPath;
// Spire.Pdf.HtmlConverter.Qt.HtmlConverter.Convert(htmlFileinput, strOutputPDFFileName, true, 10 * 1000, new SizeF(612, 792), new Spire.Pdf.Graphics.PdfMargins(3, 3, 3, 10));
Spire.Pdf.HtmlConverter.Qt.HtmlConverter.Convert(htmlString, strOutputPDFFileName, true, 100000, new Size(1080, 1000), new Spire.Pdf.Graphics.PdfMargins(3, 3, 3, 10), Spire.Pdf.HtmlConverter.LoadHtmlType.SourceCode);
System.Diagnostics.Process.Start(strOutputPDFFileName);
return strOutputPDFFileName;
}