[EMAIL PROTECTED] wrote: > I am working on the same type of thing that Bill asked about. > From the examples on the web and the ebook, I am able to add a button to the PDF. > However, some of my PDF's are landscape and the button is added with the wrong orientation. > How can I add the button based on the page orientation of the PDF?
use setRotation (see p484-485). The examples in the book show how to rotate a TextField, but it works for other subclasses of class BaseField too, including class PushbuttonField. best regards, Bruno ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
