Copy link to clipboard
Copied
So basically, this what I want to do:
.this.getField('imageField').importImage('path_to_img');
I know this code is not correct, but is there a way to do this? I couldn't find the solution in Acrobat's documentation.
Most questions I found were referring to the problem when user is selecting an image on click of a button. I don't want that.
I need something like what I wrote above becausepath_to_image
is a variable I'm pulling from a database..
Did you actually set the button's Layout to "Icon Only"?
Copy link to clipboard
Copied
@michaelw888 Did you check the Acrobat JavaScript Reference for this entry? It clearly states that the field.buttonImportIcon() function is not available in Acrobat Reader.