logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
DFletcher  
#1 Posted : Saturday, February 25, 2017 11:18:54 AM(UTC)
DFletcher

Rank: Member

Groups: Registered
Joined: 12/27/2016(UTC)
Posts: 10
United States

Hi

I need the page number(s) for interactive fields in PdfForms.Interform.Controls[]. Is there a Dictionary/collection which links a PdfField to a PdfPage?

Thanks
D





DFletcher  
#2 Posted : Wednesday, March 8, 2017 5:34:21 PM(UTC)
DFletcher

Rank: Member

Groups: Registered
Joined: 12/27/2016(UTC)
Posts: 10
United States

Nevermind.

Code:
_forms = new PdfForms();
_document = PdfDocument.Load(filename, _forms);

for (int i = 0; i < _document.Pages.Count; i++)
{
  var controls = _forms.InterForm.GetPageControls(_document.Pages[i]);

  foreach (var control in controls)
  {
      PageNumber = i+1 (zero based)
  }
}

Edited by moderator Thursday, February 21, 2019 10:07:43 PM(UTC)  | Reason: Not specified

Users browsing this topic
Guest
Forum Jump  
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.