Change the text color with cb.setRGBColorFill() or other fill method. Best Regards, Paulo Soares
> -----Original Message----- > From: Miller, Eric [SMTP:[EMAIL PROTECTED]] > Sent: Friday, July 12, 2002 17:14 > To: '[EMAIL PROTECTED]' > Subject: [iText-questions] Setting text color on PdfContentByte > > I am adding an image to a PdfContentByte as follows: > > cb.addImage(appheader, appheader.plainWidth(), 0, 0, > appheader.plainHeight(),0,750); > > I then want to place some text right in the middle of the image, so I have > used the following code: > > cb.addImage(appheader, appheader.plainWidth(), 0, 0, > appheader.plainHeight(),0,750); > cb.beginText(); > cb.setFontAndSize(ArialBold,13); > cb.setTextMatrix(50,775); > cb.showTextAligned(PdfContentByte.ALIGN_LEFT, "APPENDIX A", 190, > 795, 0); > cb.endText(); > > I can't for the life of me figure out how to change the text color, > though, > to match the text on the image. Can I change the text color? > > thanks, > e miller > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Gadgets, caffeine, t-shirts, fun stuff. > http://thinkgeek.com/sf > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Gadgets, caffeine, t-shirts, fun stuff. http://thinkgeek.com/sf _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
