Free Support Forum - aspose.com

FormFieldFacade caption problem

Hi,
I need to retrieve the value "caption" of a text field of the pdf file, but the value is always "nothing." I use this code to retrieve the value:

[...]

Dim form As Form = New Form(MapPath("fw8ben.pdf"))

Dim fieldFacade1 As FormFieldFacade = form.GetFieldFacade("f1-3")
Dim fieldFacade2 As FormFieldFacade = form.GetFieldFacade("f1-4")
Dim fieldFacade3 As FormFieldFacade = form.GetFieldFacade("f1-5")

Dim cc1 = fieldFacade1.Caption
Dim cc2 = fieldFacade2.Caption
Dim cc3 = fieldFacade3.Caption
[...]

Thanks in advance

Hi Gaetano,

First of all, please make sure that the form fields in the mentioned PDF file contains caption. Secondly, please try to use the latest version of the merged Aspose.Pdf for .NET. Kindly note that the version 6.0.0 and above are part of the merged Aspose.Pdf. Lastly, if that doesn’t help either then please share the input PDF file with us, so we could test the issue at our end and guide you accordingly.

We’re sorry for the inconvenience.
Regards,