On 3/08/2012 12:18, Pravin Wagh wrote:
> Hi,
>
> I want to get Acrofields on Page level.
>
> Could you please help me to get Acrofields on Page Level.
>
> I am getting acrofield for whole Pdf .but i am not differentiate which
> acrofields are detected for which Page in PDF.

Your question is wrong.

A PDF form that was created using AcroForm technology contains fields.
These fields are stored at the document-level NOT at the page-level.
Asking "help me get fields on page level" doesn't make any sense.

However, these fields can be visualized on one or more pages.
This is done using widget annotations.
One field can correspond with zero, one or more widget annotations.
What you want are not the "AcroFields on Page Level".
You want the page numbers of the widgets for each field (if any).

I see that you're already able to get the names of the fields.
Now you need to get the positions of the widget annotations for each page.
This is explained on p264 of the book about iText. I quote:
"The getFieldPositions() method returns a List of FieldPosition objects.
Each contains the page number and the Rectangle object defining the
coordinates of a widget."

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to