Don't forget the right margin.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Mark Goking [SMTP:[EMAIL PROTECTED]
> Sent: Monday, August 18, 2003 7:38
> To:   [EMAIL PROTECTED]
> Subject:      aligning the page 1 og 1 to the right in pageevents
> 
>  
>  
> Hi
>  
> i used the PageEvent example in iText to display Page 1 of 1. however i
> want to align it to the right, using showTextAligned though doesnt work
> automatically since you have to specify the x and y coordinates.
>  
> how do you get the pagesize of the document? using document.getPageSize()?
> coz i tried this and subtracted it with the length of the string using
> bf.getWidthPoint(stringObject, 12)
>  
> but it doesnt really get aligned to the right
>  
> my pagesize is this by the way Document document = new
> Document(PageSize.LETTER, 18, 18, 18, 100);
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.509 / Virus Database: 306 - Release Date: 8/12/2003
>  


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to