It's a bug. Some chapter processing is done before issuing the new page and
that causes problems if the page has changed dimensions. Maybe Bruno can
have a look at it, it's more in his department.

Best Regards,
Paulo Soares

----- Original Message -----
From: "Chris Ward" <[EMAIL PROTECTED]>
To: "iText (E-mail)" <[EMAIL PROTECTED]>
Sent: Saturday, August 03, 2002 18:11
Subject: [iText-questions] Is there a way to not page break automaticly when
adding a chapter?


> When I add a chapter, itext always inserts a page break. That would be
> fine, because I do want one, but I need to set the page size (rotate or
> not) before a page break happens. Is there a way to not page break
> unless i tell it to?
>
> Example of what i am doing:
>
> document.setPageSize(PageSize.A4);
> document.newPage();
> document.add( chapter1 );
> document.setPageSize(PageSize.A4.rotate());
> document.newPage();
> document.add( chapter2 );
> document.setPageSize(PageSize.A4);
> document.newPage();
> document.add( chapter3 );
> document.setPageSize(PageSize.A4.rotate());
> document.newPage();
> document.add( chapter4 );
> document.setPageSize(PageSize.A4);
> document.newPage();
> document.add( chapter5 );
>
> This does not set the right pages to rotated or not as I expected,
> because it seems that the .newPage() is called after inserting the
> chapter; so when I uses .setPageSize() it for two pages out?
>
> Chris
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to