Access to Form Field format property

Access to Form Field format property

Forum member · Feb 19, 2007
Hi, We are using a web fax service and are having problems sending some of our third party PDF documents because the fax service will not open PDF documents that use javascript. We have discovered that the problem occurs from form fields that are being formatted (i.e. number with 2 decimals). So, I assume Acrobat uses javascript to format these fields. We have downloaded PDF Merger 4.0 and the javascripts collection shows no javascripts. Is there anyway to remove or change the formatting on a form field programmatically? I’ve also considered using the CreateLabel method on the PdfFormField object, but I would have to pass a Font and a Font-size. This is really not practical for us because we have PDF documents from various sources and don't want to potentially show a different font where the form fields are located. Is it possible to have the same method in a future release that would default to the form fields font settings? Or is it possible in a future release to have access to the form field's format property? Or is there any other way we can get around this? Thanks!

Re: Access to Form Field format property

Support · Feb 20, 2007
Hello, It is not possible to change or delete the formatting information of existing form fields. You will have to fill the form field with some text in order to use the exisitng formatting of the form field, it is not possible to change the formatting when using the CreateLabel method. Thanks, ceTe Software Support Team.

Re: Access to Form Field format property

Forum member · Feb 20, 2007
Yes, I realize I can't, nor do I wish to, change the formatting from the CreateLabel method. Setting the text and using the form field's formatting as you suggested is the problem I addressed that is not allowing us to fax these documents. Is there anyway you can add value to your product and either 1) Add another CreateLabel method that defaults to the form fields font settings or 2) Add a format property to the form field object or perhaps just a method to remove formatting? This would help us out a lot. If not, we'll look to other options.

Re: Access to Form Field format property

Support · Feb 20, 2007
I do see your situation and thank you for the suggestions. We are always interested in customer (or non-customer) feedback on our components. Either of these may be something that could make it into a future version but nothing for sure. It sounds like however you should be looking to the maker of your fax component to find out why they are not supporting all valid PDF documents. Using our component you can strip off any document level javascript by specifying the appropriate MergeOptions. There could also be javascript at the form level which will either be preserved if the form fields are preserved or removed if the form fields are removed (which is also done using the MergeOptions). However keep in mind that not all filled out form fields are using javascript, in fact most do not use javascript. A form field placed on a PDF and filled out (using our component or not) does not use any javascript. Is it possible that the fax component that you are using has and patches or fixes that would make it compatible with all valid PDF documents? Thanks, ceTe Software Support Team