Welcome to the ASP.NET MVC feedback portal. We’re happy you’re here! If you have feedback on how to improve the ASP.NET MVC, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

0
Votes

When using the WebKit HTMLConverter with EnableForm=true, generating a PDF checkbox also draws an unnecessary box underneath and to the side the checkbox form on the resulting PDF. The attached PDF presents this issue, which is visible at some zoom levels but not others in PDF viewers.


The following code and HTML reproduce this issue on version 16.4.0.42 of the HTMLConverter.


Code:

var converter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit)
            {
                ConverterSettings = new WebKitConverterSettings()
                {
                    WebKitPath = @"C:\Program Files (x86)\Syncfusion\HTMLConverter\16.4.0.42\QtBinaries",
                    EnableForm = true,
                },
            };

            string html = System.IO.File.ReadAllText("test.html");
            PdfDocument doc = converter.Convert(html, "");
            doc.Save("test.pdf");
            doc.Close(true);

HTML:

<!DOCTYPE html>
<html>
<body>
    <table style="width:100%">
	<tr>
		<td>
			TEST CHECKBOX
		</td>
	</tr>
        <tr>
            <td>
                <input type="checkbox" style="height:35px; width:35px;">
            </td>
        </tr>
    </table>
</body>
</html>