Hi Rajeev, there is no such thing like a date field in PDF. Date fields are represented as regular text field with some JavaScript (if you define them in Acrobat). You can get the field actions with
http://pdfbox.apache.org/docs/1.8.6/javadocs/org/apache/pdfbox/pdmodel/interactive/form/PDField.html#getActions() BR Maruan Am 16.10.2014 um 19:49 schrieb Rajeev Menon <[email protected]>: > All, > > I am trying to find if a field is of type Date and if yes, what is the > format (like yyyymmdd) of the date (in a Flat PDF). I tried the following > lines of code to see if anything helps, but no luck. > > if (fldPD!=null) { > > System.out.println("*************"+entryData.getKey()+"*****************"); > System.out.println("subtype = > "+fldPD.getWidget().getSubtype()); > System.out.println("annotName = > "+fldPD.getWidget().getAnnotationName()); > System.out.println("hilit = > "+fldPD.getWidget().getHighlightingMode()); > System.out.println("fldFlags = "+fldPD.getFieldFlags()); > System.out.println("contents = > "+fldPD.getWidget().getContents()); > System.out.println("appeStream = > "+fldPD.getWidget().getAppearanceStream()); > //fldPD.setValue(entryData.getValue()); > } > > Please help me here. > > Thanks,

