Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Fri Nov 05, 2021 3:26 pm

Hi!

I'm currently facing an issue with the .NET library, I'm creating a PdfTextBoxField like so:

Code: Select all
return new PdfTextBoxField(pdfDocument.Pages[fieldProperty.Page], fieldProperty.FieldName)
            {
                Bounds = new RectangleF(
                    fieldProperty.FieldPositionDTO.X,
                    fieldProperty.FieldPositionDTO.Y,
                    fieldProperty.FieldPositionDTO.Width,
                    fieldProperty.FieldPositionDTO.Height),
                BorderWidth = 0,
                Text = fieldProperty.Value ?? "",
                TextAlignment = textAlignment,
                Flatten = true,
                ReadOnly = true,
                Multiline = false,
                Visible = true,
                ForeColor = new PdfRGBColor(0,0,0)
            };


However, for some reason, on Adobe, the field is not visible

Image

But, on Chrome, it is (see the tiny asterisk)

Image

Any ideas of what might be causing the issue?

andresperez
 
Posts: 2
Joined: Fri Nov 05, 2021 2:18 pm

Mon Nov 08, 2021 9:32 am

Hello,

Thank you for your inquiry.
Sorry the pictures you provided are not visible, could you help to re-attach again?
Meanwhile, I tested your code snippet with our latest Spire.PDF Pack(Hot Fix) Version:7.10.4, but the field is visible on both Adobe and Chrome. If you were not using the latest version, please first try again with this one. If the issue still exists after trying, please provide the following information for our reference. You could attach them here or send them to us via email (support@e-iceblue.com). Thanks in advance.
1)Your sample PDF file(if any).
2)Your complete test code.
3) Your test environment, such as OS info (E.g. Windows 7, 64-bit) and region setting (E.g. China, Chinese).
4) Your application type, such as Console app (. Net Framework 4.5).

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1651
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.PDF