Hello.

How do I get the default value of a PDF field? I reached here:

PdfStamper stp = new PdfStamper(reader, new FileOutputStream(tmpfile));
AcroFields af = stp.getAcroFields();
String fieldName = ...;
((PdfDictionary) af.getFieldItem("NumOptimus").merged.get(0))
                    .get(PdfName.DV);

I don't know if i'm going in the right way. How do I do this?

Thanks,

Reply via email to