• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Insert an image into pdf (Adobe Acrobat Pro DC) using javascript

Community Beginner ,
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_imageis a variable I'm pulling from a database..

TOPICS
Acrobat SDK and JavaScript , Windows

Views

13.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Apr 18, 2016 Apr 18, 2016

Did you actually set the button's Layout to "Icon Only"?

Votes

Translate

Translate
Community Expert ,
Apr 22, 2024 Apr 22, 2024

Copy link to clipboard

Copied

LATEST

@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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines