Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

How to get Label Name based on ID?


Level 1

I have Editable PDF Document ,my code Returns all Form Fields of that PDF Document,  but for  label i want name of the  label instead of  id/name By using id.

Ex:   'First Name'  is the label name before Text Box(Form Field) ,Code Returns "FName","Text First Name" ids for label and form field,but i want to get "First Name".

       MemoryStream ms = new MemoryStream();

        PdfReader reader = new PdfReader(Request.MapPath("~/editble.pdf"));

        PdfStamper formFiller = new PdfStamper(reader, ms);

        AcroFields formFields = formFiller.AcroFields;

Is It Possible or not? If Yes

Please let know the process how to do.

Thanks in Advance.

0 Replies