From the javadocs:

PdfFormField ff = bt.getField();

For the other appearances using the same bt instance:

bt.setImage(image_down);
ff.setAppearance(PdfAnnotation.APPEARANCE_DOWN, bt.getAppearance());
bt.setImage(image_rollover);
ff.setAppearance(PdfAnnotation.APPEARANCE_ROLLOVER, bt.getAppearance());


----- Original Message ----- From: "Dan Phillips" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, February 10, 2006 11:10 PM
Subject: [iText-questions] SetAppearance not found for the PushButtonField object


No problem with that. Use the code in the PushbuttonField javadoc but
instead of an image use a template with a PDF page inside. The result is a
button with a normal appearance. To set the other appearances set another
template with another page in the same PushbuttonField instance, call
getApperance() and in the previously returned field call setAppearance()
with the down or rollover key. You need the iText version in the CVS to do
that.

Paulo

We are unable to locate the setappearance method to change the appearance
for the different faces of a push button,

We looked in the cvs and the setappearance method is not there,

Set Appearance is available with the PdfFormField object but not the
PushButtonField

We used the PushButtonField object to create the push button and we have
added the getAppearance code to the itextsharp dll .

Regards

Dan Phillips





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to