Unnecessary borders on input fields

Need: having the same output in PDF (using Aspose.PDF) as when printing to pdf file
Issue: having borders on input fields (input and checkboxes), despite disabling and flattening fields in code.
Expected:
image.png (1000 Bytes)
But having:
image.png (3.0 KB)

Please help?

@sergey.tsernihovski

Could you please share the sample PDF along with the sample code snippet that you have used? We will test the scenario in our environment and address it accordingly.

Sure.
Please see the code below.
In the attached zip, file_seq.pdf is what I get from the code.
file_seq_tofile.pdf is what we expect (it was done with file->print to pdf).
For example wkhtmltopdf has “Do not turn HTML form fields into pdf form fields (default)” option.
Maybe you have something similar?
file_seq.zip (191.4 KB)

new License().SetLicense("Aspose.pdf.net.lic");
HtmlLoadOptions options = new HtmlLoadOptions();
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(@"C:\Downloads\file_seq.html", options);
foreach (var item in pdfDocument.Form.Fields)
{
    item.ReadOnly = true;
    item.Flatten();
}
pdfDocument.Save(@"C:\Downloads\file_seq.PDF");

@sergey.tsernihovski

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-56655

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.