Skip navigation
Currently Being Moderated

Automatically attach JPGs to image fields

May 10, 2012 8:57 AM

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

 
Replies
  • George Johnson
    9,224 posts
    Aug 11, 2002
    Currently Being Moderated
    May 10, 2012 9:01 AM   in reply to jackson.chen1101

    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.

     
    |
    Mark as:
  • George Johnson
    9,224 posts
    Aug 11, 2002
    Currently Being Moderated
    May 16, 2012 9:05 AM   in reply to jackson.chen1101

    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

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points