Adobe Acrobat allows a form author to specify various text field properties when creating a text field. In my form, I have a text field that accepts date values. In the Text Field Properties dialog box in Adobe Acrobat, I can specify that the format category is “Date”, and that the format string is
dd-mmm-yyyy HH:MM:ss tt
For example, 12 o’clock noon on Christmas Day, 2014:
25-Dec-2014 12:00:00 pm
The problem I’m running into is setting the field value using the Aspose PDF for .NET class library. If the PDF form field has an unusual format string like this, I need to be able to read that string so that I know how to format the date/time value when calling FillField():
// This won’t work with the format shown above:
form.FillField(“12/25/2014 12:00:00 pm”);
The application that I am building with your class library does not know ahead of time what the format string will be for the fields it works with–it needs to dynamically read this information from the PDF document that it is accessing.
So my question is: How do I retrieve the format category information embedded in the PDF document? I’ve looked and looked through the Aspose PDF documentation and have searched the various properties and methods exposed in the Visual Studio debugger at runtime, and it doesn’t look like this information is surfaced by your class library (or if it is, it’s not in an obvious place). Thanks.