Dear All,
I create a form with multi text fields and multi image fields. Each text field contains a full path name of related image file. Is it possible to write a routine in form to automatically attach image files specified in text field into respective image fields. This function should be automattically activated when opening PDF.
It will be appreciated if someone has similar codes can be shared.
Thanks
Jackson
Since you mentioned image fields, I have to ask if this is a form created in LiveCycle Designer or Acrobat? If Designer, you should ask in the LiveCycle Designer forum, but this sort of thing (directly accessing files) is normally not allowed without the use of a trusted function placed in a folder-level JavaScript file.
Hi George,
I'm trying to use Button icon to display iamge rather than using Image field, with this I don't need to use LiveCycle Designer. I've a text field which is filled with local jpg pathname, and the button icon will use this pathname to display. Do you have a sample script for this task?
Also, regarding "directly accessing files", Would it help if I go to Edit/Preferences/Security(Enhanced) in Acrobet Reader and Add Folder Path in Priviledged Locations. Please advise.
Thanks,
Jackson
There are two problems with that approach. Neither the buttonImportIcon field method nor the importIcon doc method work with Reader. Though I have hope this will change some day, it won't help now. For it to work with Acrobat, the code would have to be placed in a folder-level JavaScript file since you want to specify the path. For more information, see:
buttonImportIcon: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_A croJS.88.737.html
importIcon: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_A croJS.88.500.html
North America
Europe, Middle East and Africa
Asia Pacific