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

Notification

Icon
Error

Options
Go to last post Go to first unread
BradDekker  
#1 Posted : Friday, June 4, 2021 12:06:50 AM(UTC)
BradDekker

Rank: Newbie

Groups: Registered
Joined: 6/3/2021(UTC)
Posts: 2
United States

Was thanked: 1 time(s) in 1 post(s)
We are loading PDF documents with form fields, setting the values on the form fields and successfully saving it with NoIncremental. We are able to merge those documents together successfully at the end often, but when two documents have form fields with the same name, but different values, the values for the form fields on the second document do not show. Is there a way for us to rename a form field in a PDF document so that we can take more control to avoid this scenario? Any assistance or thoughts would be appreciated.
BradDekker  
#2 Posted : Friday, June 4, 2021 8:54:25 AM(UTC)
BradDekker

Rank: Newbie

Groups: Registered
Joined: 6/3/2021(UTC)
Posts: 2
United States

Was thanked: 1 time(s) in 1 post(s)
I think we have figured it out:

Code:
foreach (PdfField oField in m_oForms.InterForm.Fields)
{
  PdfTypeBase oBaseField = oField.Dictionary["T"];
  if (oBaseField is PdfTypeString oStringField)
  {
    oStringField.AnsiString = oField.FullName + suffix;
  }
}
thanks 1 user thanked BradDekker for this useful post.
Paul Rayman on 6/5/2021(UTC)
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.