Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!

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