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, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software

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

Add Icon or Image to Button

Post by quicdoc » 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

User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 1923
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Add Icon or Image to Button

Post by Vasyl-Tracker Dev Team » Mon Jan 26, 2015 8:39 pm

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: 1923
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Add Icon or Image to Button

Post by Vasyl-Tracker Dev Team » Tue Feb 03, 2015 9:33 pm

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