Add Icon or Image to Button
Posted: Mon Jan 26, 2015 3:12 pm
I have a pdf form with a button that I would like to use as a placeholder for an image file. I am using the pdf viewer ocx control to load and fill out a pdf file. I have tried to use the following javascript to programatically load or set the image file for the button:
var f = this.getField('Button')
var retn = f.buttonImportIcon("/C/temp/myimage.bmp");
When I use this I get an error "f.buttonImportIcon is not a function" though it is referenced in the adobe sdk guide.
Can you please offer guidance on what the issue is or another way I can in code insert an image into the pdf document?
Thank you
var f = this.getField('Button')
var retn = f.buttonImportIcon("/C/temp/myimage.bmp");
When I use this I get an error "f.buttonImportIcon is not a function" though it is referenced in the adobe sdk guide.
Can you please offer guidance on what the issue is or another way I can in code insert an image into the pdf document?
Thank you