HTML to PDF improper input field placement

Hi, I’m using .NET to convert HTML to PDF.

CSS is being shown as if rendered in IE11
and primarily, when I try to convert HTML containing form elements suck as <input> or <textarea>, those elements are not properly placed when using them with an htmlFragment.

These elements do get properly placed when loading the html file directly into the Document initializer, but we’re currently using fragments to make use of margins.

I’ve attached a project with the code I’m using for a few versions of testing that shows both issues.

Can you please make a recommendation to resolve hopefully both of these issues?

Thanks a lot! (3.0 MB)


We are checking it and will get back to you shortly.

1 Like


We have tested the case with 23.1 version of the API and were able to reproduce the issue. We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-53584

You can obtain Paid Support services if you need support on a priority basis, along with the direct access to our Paid Support management team.