These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

fields and kids

lopi007
Registered: Jul 7 2011
Posts: 11

Hello everyone.
Please help.
I have a pdf document, here it is possible to write 3 users. for each user there are many fields such as user_01: name.01, etc. surname.01.
user_02: name.02, etc. surname.02.
user_03: name.03, etc. surname.03.
I button_01 for user_01, which creates a "user_01.fdf" file. button_02 for user_02 "user_02.fdf" etc..
and the second pdf document I need to stretch the date of which herein fdf file
an example for download at: http://www.uloz.to/10126170/example.zip
excuse my English :-)

My Product Information:
Acrobat Pro 10.1, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
You can provide an array of fields to be exported to the 'exportAsFDF' method as one of the optional parameters and have just those fields names and values esported to the FDF.

this.exportAsFDF({aFields:["user_01", "name.01", "surname01"]});

George Kaiser

lopi007
Registered: Jul 7 2011
Posts: 11
Hello George
Export to me no problem, but getting the data back to the second form (doc002.pdf in the example). I output data to the user 01, 02, 03 These data need to be loaded into the document 002nd
lopi007
Registered: Jul 7 2011
Posts: 11
download example
http://lopi007.ic.cz/example/example.zip
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
I was unable to download your file, nor did I understand the interface to make it work.

You will need all of the fields in the second PDF and you will need to write custom script to import the FDF and mover imported data to the fields in the second PDF as needed.



George Kaiser

lopi007
Registered: Jul 7 2011
Posts: 11
it's simple, I need to doc002.pdf import data from any file fdf. And it does not work. :-(
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
In the form you import the data into, you need the form fields to have the exact same name as the field had in the original form.

If you open the FDF file in a text editor program, you will see a tags for the field name and field value. The values within the FDF file will only import into another PDF form if the field name in the PDF matches the field name in the FDF. For example:

<><><>]/ID[<412A1996AC11E4488A6575D2E8118B9F><3A83697C29E3014995ADA88A8AC4FA97>]/UF(doc001.pdf)/F(doc001.pdf)>>>>You need to export the field names with the same field names as they will be imported into the second PDF.

Or the second PDF needs all of the field names exported from the first PDF and you will need to sort out which fields to dispaly.

ImportExportFDF.zip

George Kaiser

lopi007
Registered: Jul 7 2011
Posts: 11
solution works great. Thank you very much