Add Icon or Image to Button

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Post Reply
quicdoc
User
Posts: 1
Joined: Mon Jan 26, 2015 3:06 pm

Add Icon or Image to Button

Post by quicdoc »

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
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2351
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Add Icon or Image to Button

Post by Vasyl-Tracker Dev Team »

Hi, quicdoc.

Sorry, it is not implemented for now. It will be added in near future.

Cheers.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2351
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Add Icon or Image to Button

Post by Vasyl-Tracker Dev Team »

Update to latest build (312) - this feature is added already.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Post Reply