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

Reply via email to