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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > Sample Code
  New Posts New Posts RSS Feed - Retriving Form Field Object
  FAQ FAQ  Forum Search   Register Register  Login Login

Retriving Form Field Object

 Post Reply Post Reply
Author
Message
ramtankala View Drop Down
Beginner
Beginner


Joined: 01 May 15
Location: India
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote ramtankala Quote  Post ReplyReply Direct Link To This Post Topic: Retriving Form Field Object
    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..
Back to Top
erico View Drop Down
Senior Member
Senior Member
Avatar

Joined: 24 Sep 14
Location: Minnesota USA
Status: Offline
Points: 51
Post Options Post Options   Thanks (0) Thanks(0)   Quote erico Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 15 at 7:35PM
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
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 15 at 9:13AM

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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store