Free Support Forum -

Added field is not visible in Livecycle


We have a problem with your PDF component. We insert an interactive field in an existing document, this field is not visible in Livecycle (on the screen and in the collection), but visible in Adobe Reader.

Code :

Dim textBoxField As New Pdf.InteractiveFeatures.Forms.TextBoxField(mpCurrentPdfDocument.Pages(1), New Aspose.Pdf.Rectangle(100, 200, 300, 300))
textBoxField.PartialName = name
textBoxField.Value = value
Dim border As New Border(textBoxField)
border.Width = 5
border.Dash = New Dash(1, 1)
textBoxField.Border = border
textBoxField.Color = Aspose.Pdf.Color.FromRgb(System.Drawing.Color.Green)
mpCurrentPdfDocument.Form.Add(textBoxField, 1)

Hi Fabien,

Thanks for contacting support.

I am working over this query and will get back to you soon. We are sorry for this delay and inconvenience.

Hi Fabien,

Thanks for your patience.

I have tested the scenario using Aspose.Pdf for .NET 7.4.0 and as per my observations, the form field is accessible when viewing the file in Adobe Livecycle Designer ES3 10.0.2. However I have observed that annotation field has red border which is not visible when viewing the file in Adobe Reader 10.1.4 (see attached image file). I have logged this issue as PDFNEWNET-34499 in our issue tracking system.We
will investigate this issue in details and will keep you updated on the status
of a correction.

apologize for your inconvenience.

Hi Fabien,

Thanks for your patience.

We have further investigated the issue reported earlier and have found that in order to resolve this issue,

  • You should specify border color to make it visible :
textBoxField.Characteristics.Border = System.Drawing.Color.Black;
  • To change text color, DefaultAppearance should be specified:
textBoxField.DefaultAppearance.TextColor = System.Drawing.Color.Green;
(this feature will become available with the release of Aspose.Pdf for .NET 7.6.0)


Document pdfDocument = new Document(@“c:\temp_output.pdf”);<o:p></o:p>

Page pdfPage = pdfDocument.Pages[1];

Aspose.Pdf.InteractiveFeatures.Forms.TextBoxField textBoxField = new Aspose.Pdf.InteractiveFeatures.Forms.TextBoxField(pdfDocument.Pages[1], new Aspose.Pdf.Rectangle(100, 300, 300, 400));

textBoxField.PartialName = "NewField";

pdfDocument.Form.Add(textBoxField, 1);

Border border = new Border(textBoxField);

border.Width = 5;

border.Dash = new Dash(1, 1);

//customer need to add this:

textBoxField.Characteristics.Border = System.Drawing.Color.Black;

textBoxField.Border = border;

//textBoxField.Color = Aspose.Pdf.Color.FromRgb(System.Drawing.Color.Green);

textBoxField.DefaultAppearance.TextColor = System.Drawing.Color.Green;

//textBoxField.DefaultAppearance.FontSize = 100;

//textBoxField.Value = "20";


PS, The above code snippet sets the field border; red border in LifeCycle is shown just to highlight field on the page

The issues you have found earlier (filed as PDFNEWNET-34499) have been fixed in Aspose.Pdf for .NET 7.6.0.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.