It's a bug. The page size change is deferred to the next page but the
margins take effect immediately.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Antoine BLANC [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, January 28, 2002 10:49
> To:   [EMAIL PROTECTED]
> Subject:      [iText-questions] PAge size and margin
> 
> hello everybody !
> 
> I've to create a document with 2 pages .
> The 1st page size is A4 (21x29.7) and its margins are 8, 8, 32 and 2
> (left,
> right, up, down).
> The 2nd is  24x32 and its margins are 0, 0, 25.5, 2.
> When I try to generate it I must put a "white" page between, otherwise the
> 1st page margins are wrong (they seem to be calculated with the 2nd page
> size and not with the 1st page size ).
> Before opening a new page I do that
> 
> pageSize = new Rectangle(680, 907);
> document.setPageSize(pageSize);
> document.setMargins(0, 0, 25.5f, 2);
> document.newpage() ;
> 
> Is it an Itext bug or do I not do the right thing at the right time ??
> 
>  Thanks in advance.
> 
>  Best Regards,
> 
>    ||||||||
>    o_O  Mil00se << File: avec_page_blanche.pdf >>  << File:
> sans_page_blanche.pdf >> 

_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to