|
|
Thank you very much!
|
|
|
Hi, The field is not associated with the page directly. This is an entity whose visual presentation is carried out by means of PdfControls. Each PdfFeld has one or more controls. Each control associated with the one page. (and yes, that does mean what field can be associated with several pages). You can get the list of controls for the page and check if desired control contained by the list. Please look at code Code:var forms = new PdfForms();
var document = PdfDocument.Load(filename, forms);
var disiredControl = yourField.Controls[0];
for (int i = 0; i < document.Pages.Count; i++)
{
var controls = forms.InterForm.GetPageControls(document.Pages[i]);
foreach (var ctrl in controls)
{
if(desiredControl.Dictionary.Handle == ctrl.Dictionary.Handle)
{
//Got it!
break;
}
}
}
|
|
|
Hi,
I need to get the page a field is on.
Thank You
|
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close