Set in your final "&" a generic tag. In an onGenericTag event write the '-'
from that position to the margin. There are methods in BaseFont to get the
the width of characters and calculate the number of '-' required. Other
tricks can be made with ColumnText such as spreading the '-' to fit exactly.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Tek [SMTP:[EMAIL PROTECTED]
> Sent: Tuesday, November 11, 2003 14:24
> To:   [EMAIL PROTECTED]
> Subject:      [iText-questions] Padding end of like/paragraph with text
> 
> I have a requirement where if a line/paragraph ends with a &, the rest of
> the line/paragraph (to the end of the right margin) needs to be padded
> with
> the character '-'.   Can someone point me in the proper direction to
> accomplish this?  Currently we are using the Chunk, Phrase and Paragraph
> constructs to build the PDF; these API do not seem to be too helpful in
> fulfilling this requirement.
> 
> Thanks
> 
> Tek
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by: ApacheCon 2003,
> 16-19 November in Las Vegas. Learn firsthand the latest
> developments in Apache, PHP, Perl, XML, Java, MySQL,
> WebDAV, and more! http://www.apachecon.com/
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions


-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to