An FDF file is a plain text file that contains a list of form fields and their values. These are some of the more common methods to create FDF files:. Within it are six name-value pairs. The lines before and after these pairs are identification and formatting information. If you want to see the contents of an FDF file open it in a text editor.
When long character strings are used in text fields, you may need to manually insert line breaks, so xfdr the text wraps in the form field the way you would like it to.
FDF and XFDF | iText Developers
If you put a line break in a field value, you need to adjust the spaces between words. They both work the same way. Creste single new line results from any of the following: For example, if your text is:. The value of a name-value pair should be on a single line.
Special characters can be entered directly into the FDF file, creeate they can be represented by octal characters. XFDF files have an element called fields that contain field and value. You can go to https: An example of an XFDF file which shows this simple structure follows.
To manually insert a line break in form field text, type a carriage return directly into the value in the XFDF file.
The only place double-byte characters can be used is in the value parameter of a text form field. In order to use Acrobat to view and print Asian text, you must have Asian language support files installed for both the Operating System OS and Acrobat. The table below shows whether Asian font support is automatically installed for your combination of OS and Acrobat, or whether you have to manually install it. To install Asian font support, open Regional Options in the Control Panel, and add the fonts you want.
You may need your original installation disk. Refer to the Windows on-line help for more information. You can also install keyboard support.
For all other versions, you will need to do a custom installation, and choose to install Asian font support. Refer to the Acrobat on-line help for more information. Download and install the Asian Font Pack. Reader components can be updated in a variety of ways.
Some updates are available when you open a PDF that triggers the updating process automatically. For example, if you open a form that uses Asian language fonts, Reader asks whether you want to download the fonts. Other updates are available only from the Help menu, and you must install them manually. Some updates are available both automatically and manually.
You must choose to install it when you install Acrobat Reader. If you did not, you must reinstall Reader. There are standard Adobe fonts that are available when using Unicode characters. The table below lists the seven fonts that are available for double-byte character stamping:. Your system must have the appropriate fonts installed.
FDF and XFDF
Only the value field can have Asian fonts or any other higher level Unicode character. If you want to make sure your characters are placed directly with no conversion, use UTF UTF requires the double-byte characters in big-endian hexadecimal.
This behavior will sometimes also be true for non-flattened forms, when the form fields are still active. Therefore, whether merging and flattening or only merging, it is good practice to format the field as you would like it to appear directly within the FDF file.
If you choose not to flatten form fields but just merge them, you can run with the -norebuild option and allow Acrobat to build the appearances for you.
Running with the -norebuild flag would allow Acrobat to perform the calculations setup in form fields. This technique may also be used to stamp the first page of a PDF document onto a button if -s is specified.
When an image is stamped onto a button, the action of freate button is lost in the form flattening. Active buttons appear on flattened documents if:.
These are some of the more common methods to create FDF files: Use Adobe Acrobat to export forms data directly to a file. Export data from a database and save it as an FDF file, using a xfdff that you create. Write a program that will build an FDF file as a plain text file, using a script that you create. The data is given as name-value pairs, enclosed in double angle brackets: Note that the text wraps around to the next line!
Privacy & Cookies Policy
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.