How do I obtain a PDF form TextBoxField's format?

I am using Aspose.PDF for .NET. I am using version 10.1.


I have a need to read the format of a TextBoxField (Number, Percentage, Date, etc). How can I do that? I don’t see a property or method available on the TextBoxField class that would give me this information.

Thanks!

Hi Ana,

I am afraid the requested feature is currently not supported. However, for the sake of implementation, I have logged this requirement in our issue tracking system under the New Features list as PDFNEWNET-38191. We will further investigate this requirement in detail and will keep you updated on the status of a correction.

We apologize for your inconvenience.

Hi Ana,


Thanks for your patience.

We will appreciate if you can please share share example files where you need to read format of TextBoxField as it will help us in better understanding the requirement.

Hi there,


Is there any progress on this?

I am interested to know the format information of a textbox field so I can properly build a web form with a corresponding input control. We have the need to auto-generate web forms based on a selected fillable PDF that will allow our users to fill out the web form and have a populated PDF as an output.

Based on this http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/FormsAPIReference.pdf I was able to determine what I needed to know. The javascript function names for formatting are available under the Field.Actions.OnFormat property. I can use this to determine the format type of the textbox.

Hi Ana,


Thanks for sharing your feedback. It is good to know that you found workaround to accomplish your requirements at your own. Please feel free to contact us, if you need any further assistance in this regard.

Best Regards,