I'm not sure if this answers your question,
but have you tried this:

Ruskin Dantra wrote:
> PdfContentByte cb = writer.getDirectContent();  
> 
>  cb.resetRGBColorStroke();
>  cb.resetRGBColorFill();
>  cb.setFontAndSize(FontFactory.getFont(FontFactory.HELVETICA, 12, 
> Font.UNDERLINE).getBaseFont(), 12);
>    cb.beginText();
>    cb.showTextAligned(0, "(100, 700)", 100, 700, 0);
>    cb.endText();

PdfContentByte cb2 = writer.getDirectContentUnder();
>    cb2.setLineWidth(1);
>    cb2.setRGBColorFillF(0f, 255f, 0f);
>    cb2.rectangle(100, 700, 100, 100);
>    cb2.fill();

This is explained on page 295 of the book.
br,
Bruno

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to