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.

Wed Mar 25, 2020 4:58 pm

I am trying to get the values of a form field and was wondering what method I should use. This is the current list I'm trying to obtain.

Code: Select all
                         
 arrServiceMark[ServiceMarkCount, 1] = objFieldInfo.FontName;
 arrServiceMark[ServiceMarkCount, 2] = objFieldInfo.FontSize.ToString();
 arrServiceMark[ServiceMarkCount, 3] = objFieldInfo.Height.ToString();
 arrServiceMark[ServiceMarkCount, 4] = objFieldInfo.Width.ToString();
 arrServiceMark[ServiceMarkCount, 5] = objFieldInfo.PageNumber.ToString();
 arrServiceMark[ServiceMarkCount, 6] = objFieldInfo.Rotation.ToString();
 arrServiceMark[ServiceMarkCount, 7] = objFieldInfo.Left.ToString();
 arrServiceMark[ServiceMarkCount, 8] = objFieldInfo.Top.ToString();

dcrays08
 
Posts: 1
Joined: Wed Mar 18, 2020 8:52 pm

Thu Mar 26, 2020 2:55 am

Hi,

Thanks for your post.
Different types of form fields may have different sets of properties. Here I'm going to take the textbox field as an example, first getting PdfTextBoxFieldWidget object from form fields collection, and then you can find all of its properties, as shown in the screenshot below.
01.png



Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.PDF