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 Jun 03, 2015 6:27 pm
Hello,
Given the following code snippet:
for (int j = 0; j < formWidget.FieldsWidget.List.Count; j++)
{
PdfField field = formWidget.FieldsWidget.List[j] as PdfField;
...
how do you determine which pdf page the PdfField field control is on?
Thanks,
Grant
-
grantsss
-
- Posts: 8
- Joined: Mon Apr 13, 2015 8:43 pm
Thu Jun 04, 2015 8:25 am
Hello,
Thanks for your inquiry.
Here is the sample code for your reference.
- Code: Select all
for (int i = 0; i < formWidget.FieldsWidget.List.Count; i++)
{
PdfField field = formWidget.FieldsWidget.List[i] as PdfField;
int pageNum = pdfdoc.Pages.IndexOf(field.Page);
}
Best Regards,
Sweety
E-iceblue support team
-
sweety1
-
- Posts: 539
- Joined: Wed Mar 11, 2015 1:14 am