Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
Retriving Form Field Object |
Post Reply |
Author | |
ramtankala
Beginner Joined: 01 May 15 Location: India Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 01 May 15 at 1:41PM |
Thanks in advance...
My requirement is how to get the each form field name, field value, position of field(X-axis and Y-axis),field height,field width. I am not able to read each field object. Give me an idea how to get the form field object. it is very urgent.. |
|
erico
Senior Member Joined: 24 Sep 14 Location: Minnesota USA Status: Offline Points: 51 |
Post Options
Thanks(0)
|
Function FornmFieldCount() will give you the number of fields.
Iterate using GetFormFieldBound() to get x,y axis and sizes. Many other "GetFormField..." functions to obtain the other information required. It's all in the documentation. |
|
Eric O
|
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Hello, You can use code similar to the code below. GetFormFieldCount will return the total number of formfields located in the PDF. If it is 0 then there are no formfields. You can then use a loop from 1 to FormFieldCount to access each formfield. item 1 is the first formfield, 2 the second ...
for i = 1 to GetFormFieldCount() { // use i as the index to the formfields type = QP.GetFormFieldTpe(i); x = QP.GetFormFieldBound( i, 1); y = QP.GetFormFieldBound( i, 2); title = QP.GetFormFieldTitle(i); // formfield name value = QP.GetFormFieldValue(i); .. .. There are many other form field functions. Use this link to see them all. http://www.debenu.com/docs/pdf_library_reference/FormFields.php Andrew
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store