These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

place picture to the button?

zenare
Registered: Jan 11 2008
Posts: 3

Hi

I tryed to place picture to a button with this code. It works great in standard and pro but not in reader?

It seems to work in reader, dialogbox appears, I chose a picture but - no visible picture after all?

Can anyone help?

var z=this.getField("resumeField");
z.browseForFileToSubmit();
var f=this.getField("myButton");
f.buttonImportIcon(z.value);
f.display=display.visible;

lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
When you create a button import in Acrobat the javascript cannot be used in Reader, only Standard or Pro. If you want a button import that works in Reader, try Ted Padova's tip number 88 at:
http://www.acrobatusers.com/articles/2007/11/101_forms_etips_article/

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.