On 16/08/2010 15:09, kalyanmsc wrote:
>
> Hi i create a colum by using the
>
> PdfContentByte cb = writer.getDirectContent();
> ColumnText ct = new ColumnText(cb);
> ct.setRunDirection(1);
> ct.setAlignment(Element.ALIGN_JUSTIFIED);
> ct.setLeading(0, 1.5f);
> ct.setSimpleColumn(document.left(), 0, document.right(), document
>                                       .top());
>
> is it possible to set the back ground color to  the particular
> setSimpleColumn?

You have the coordinates of a rectangle:
lower-left corner: (document.left(), 0)
upper-right corner: (document.right(), document.top())
You can draw a colored rectangle to the getDirectContentUnder().

If you want the rectangle to be adapted to the content in the column,
you can use (document.left(), ct.getYLine()) as lower-left corner.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to