Sorry Paulo, meant to send to list...

-----Original Message-----
From: Chris Ward 
Sent: Friday, August 16, 2002 11:46 AM
To: 'Paulo Soares'
Subject: RE: [iText-questions] onEndPage has wrong page size


Well, that is working.

What is the difference between this.pageSize, from Document and thisPageSize from 
PdfDocument?

Chris

-----Original Message-----
From: Paulo Soares [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 4:40 AM
To: Chris Ward; iText (E-mail)
Subject: Re: [iText-questions] onEndPage has wrong page size


That's what I answered in another thread:

Yes, it's inconsistent. You can fix it by adding this method to
PdfDocument:

    public Rectangle getPageSize()
    {
        return thisPageSize;
    }


This works for your problem but a more general solution must be found.

Best Regards,
Paulo Soares


----- Original Message ----- 
From: "Chris Ward" <[EMAIL PROTECTED]>
To: "iText (E-mail)" <[EMAIL PROTECTED]>
Sent: Thursday, August 15, 2002 22:10
Subject: [iText-questions] onEndPage has wrong page size


> I have been fighting with this for awhile now...
> 
> I am creating a multi page document that contains several sections. Each
> section could have a different page size - landscape or portrait.
> 
> I am right now using an onEndPage event to place the page number in the
> bottom right corner of the page with a
> document.getPageSize().width()-50. The problem is that onEndPage often
> has the wrong page size.
> 
> When I start a new section, I set the next page size and goto the next
> page.
>         document.setPageSize( pageSize );
>         document.newPage();
> 
> This triggers the onEndPage method which has the correct page number,
> but then next pages size.
> 
> I realize that there is a iText issue here, but I can't figure out a way
> around the problem. Do you have any ideas what I can do to get an
> accurate page size to the onEndPage event?
> 
> Chris Ward
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to