Hi everyone,

I'm using iText version 2.1.7. I want to highlight a label above a text
field in a 1 page document -- this document is provided to me so I have no
control on how it's created. I've tried everything that I can think of. I've
also been reading the first version of the book and am halfway through. So
here's my problem.

PdfContentByte over = stamp.getOverContent(1);
over.setColorFill( new Color (255, 255, 0) );
over.rectangle (x, y, width, height );
over.fill ();

This code draws the rectangle over my label so the label is no longer
visible. If I use, stamp.getUnderContent() instead, the rectangle gets drawn
under my form. It's as if there's a third layer to this form but I'm not
sure how to access it.

Any help would be greatly appreciated as I've been trying to do this for a
couple of days now.

Thanks,
Jan

Additional details: I have an empty textfield that's drawn on top of the
label and that's how I get co-ordinates of the label that I need to
highlight. I've tried the background option of the textfield as well, but
that hides the label again.
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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