Vincent CAURIER wrote: > Hello, > > I have to create a PDF containing several pages. The setMargins() method > is available for Document object. > Every page of my document must have different margins, because they have > different headers/footers. > I tried to changed the margins of the document between two pages, but it > doesn't work. How can I do ?
AFAIK you need to change the document margins BEFORE you do document.newPage(). The newPage() method does a lot of initialisations. Once you are inside the new page, you can't change the margins of the current page, only of the next page. br, 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/
