Expand my Community achievements bar.

Accessible Pdf Forms

Avatar

Level 1

i have a pdf form whcih   has few fields that i fill from C# using the ItextSharp, the problem is that   the field filled in the pdf form cannot be read by Adobe View Read Out Loud   feature in correct order and the Jaws cannot read the text filled in the pdf form.   But both the readers read the text that was in the pdf form except for the   values in fields.

here is the code i use

PdfReader reader = new   PdfReader(formFile);

      PdfStamper stamper = new PdfStamper(reader,

           new FileStream(newFile, FileMode.Create));

      AcroFields fields = stamper.AcroFields;

           // set form fields

      fields.SetField("Date", "10/10/2009");
        
     fields.SetField("Time", "11");
     fields.SetField("number", "32");
     fields.SetField("member", "Adams");
     fields.SetField("person", "Seven");
     fields.SetField("Other", "other   info");

    // set   document info

      Hashtable info = new Hashtable();

      info["Title"] = "pdfForm";

      info["Author"] = "Code";

      info["Creator"] = "user";

      stamper.MoreInfo = info;

    //   flatten form fields and close document
        
     stamper.FormFlattening = true;

      stamper.Close();

0 Replies