Thanks for the fast reply, the problem was that you pointed, I have to do the document.open() after setPageSize()
Thanks for the great work!! -----Original Message----- From: Bruno Lowagie [mailto:[EMAIL PROTECTED] Sent: lunes, 10 de octubre de 2005 14:30 To: Josep Miquel Garcia Rodriguez Cc: [email protected] Subject: Re: [iText-questions] first setPageSize doesn't work Josep Miquel Garcia Rodriguez wrote: > > I know that you can do: > > Document document = new Document(PageSize.A4.rotate()); and then > it works well. But in my case I can't use tha way. I didn't understand the question. It is as Gustaf says: newPage doesn't trigger a new page if the page is empty. I want to add one thing to Gustafs explanation: if you change page properties of the first page, you need to do this before document.open() otherwise the properties will be changed starting with the second page; not from the first page. br, Bruno
smime.p7s
Description: S/MIME cryptographic signature
