By Date: <-- -->
By Thread: <-- -->

How to set margin of a document dynamically



Sony Thomas wrote:

I have created a document with margins(36,36,75,77). If I have a header for the document then the document margins have to set to a different size.

I tried document.setMargins(36,36,head.getTotalheight(),77);

But this is not working. Can anyone help me to set margins dynamically.

Try the examples. The secret is probably newPage(): http://itextdocs.lowagie.com/tutorial/general/#step1 http://itextdocs.lowagie.com/examples/com/lowagie/examples/general/LandscapePortrait.java br, Bruno


------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ iText-questions mailing list iText-questions (at) lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions