Dear All,
I want to localize the captions of the fields in PDF Form developed using Adobe LiveCycle Designer 7.1.
In order to do that, I figured out that have to prepare XML Data Source of all Captions and related text in the target language.
The languages are English, Arabic and French. For each Language, there must be one XML File which will be the Data Source of the required captions, and the captions on the form will be bound to that XML Data Source.
I need to find automated way (programmatic or any other way) to generate the XML in a special format using input for a Table in any Database, say MS Access/SQL, as follows:
I have input table of Captions in all languages that looks like the following (see the Excel Sheet below for a sample input table):
http://spreadsheets.google.com/pub?key=pDk9OsF0emb5zxEhSunL3UQNote: I am sorry as I do not know the French translation.
Using the above input table, I need to generate 3 separate XML Text Files as follows:
---- For Arabic ---
الاسم
العنوان
تاريخ الميلاد
عدد افراد الاسرة
الجنسية
---- For English ---
Name
Address
Date of Birth
Family Members
Nationality
---- For French ---
xxx
yyy
xxx
xxx
yyy
----
The Input Table above is relatively huge, and it may change from time to time, therefore, it will be very important to generate XML using programmatic approach.
I was able to use Dynamic Property Biding to bind the captions and the tool tip text to such XML Data Source, but I am still facing some difficulties.
So, after generating the above XML Files one for each language, and do all the binding in LiveCycle Desinger, then before publishing the forms LIVE, I will create 3 copies of the PDF form, one for each language, and use Acrobat to import the Resource XML File (using Import Form Data Menu Option) of the related resource language file in the related PDF File, and save the PDF file.
To summarize:
============
1. Is this the correct approach for localization, or there is better one ?
2. How I can generate the above XML in an easy way from the input table shown in the link above ?
3. Can I control the direction the the PDF From so that I can make it From Right to Left for Arabic instead of from Left to Right ? I want to avoid making a new separate PDF specially form Arabic Language. The direction will affect the reading order and the Tab Order of the Fields and the location of the Objects on the Form.
4. I figured out how to change the field alignment, caption location, and locale using javascript, but is there an easy way to change such properties using JavaScript for all fields in one go, because the form has 14 pages, and each page has many subforms which are nested up to 3 levels.
Please help.
Tarek.