0
Community Beginner
,
/t5/acrobat-sdk-discussions/insert-an-image-into-pdf-adobe-acrobat-pro-dc-using-javascript/td-p/8256651
Apr 15, 2016
Apr 15, 2016
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..
TOPICS
Acrobat SDK and JavaScript
,
Windows
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
1 Correct answer
Community Expert
,
Apr 18, 2016
Apr 18, 2016
Did you actually set the button's Layout to "Icon Only"?
Community Expert
,
LATEST
/t5/acrobat-sdk-discussions/insert-an-image-into-pdf-adobe-acrobat-pro-dc-using-javascript/m-p/14571835#M92996
Apr 22, 2024
Apr 22, 2024
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.
Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often
Use the Acrobat JavaScript Reference early and often
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more


-
- 1
- 2