Welcome Guest Search | Active Topics | Sign In | Register

Read value from text box of PDF Document Options
Gesdocument
Posted: Tuesday, February 23, 2016 9:52:30 AM
Rank: Member
Groups: Member

Joined: 5/23/2013
Posts: 24
Hi,
it could be possible to read a value of a text box from the pdf document?
I'va try something like this:

EO.Pdf.PdfDocument doc = new EO.Pdf.PdfDocument("c:\\myPDF.pdf");
EO.Pdf.PdfFieldCollection fields = doc.Fields;
foreach (EO.Pdf.PdfField f in fields)
{
string name = f.Name;
string value = f.Value;
}

but I don't get any Filed in the document.

Thanks!

eo_support
Posted: Tuesday, February 23, 2016 3:55:28 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

Make sure you loop through f.Children recursively. PDF fields can be organized as a tree. Only the leaf nodes are real fields.

Thanks!


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.