Thanks Paul. It worked.
--- Paulo Soares <[EMAIL PROTECTED]> wrote:
> Lower the template box to account for the
> descenders:
>
> wmTemplate.setBoundingBox(new Rectangle(0, -20, 500,
> 200));
>
> Best Regards,
> Paulo Soares
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> [SMTP:[EMAIL PROTECTED]
> On Behalf Of Kuldeep Kataria
> > Sent: Tuesday, December 16, 2003 23:24
> > To: [EMAIL PROTECTED]
> > Subject: [iText-questions] Problem with watermark
> >
> > Hi Guys,
> > I am having problems with watermark. I am creating
> > tepmplate for watermwark. It appears right but it
> is
> > chopping off little bit from the bottom like if I
> > print "Testing for the Report" then g and p get
> > chopped off little bit from the bottom. rest looks
> ok.
> > Here is the code. Please give your comments what I
> am
> > missing here.
> >
> > this.wmTemplate =
> > this.contentByte.createTemplate(500, 200 );
> > wmTemplate.beginText();
> > BaseFont bf =
> BaseFont.createFont(BaseFont.HELVETICA,
> > BaseFont.CP1252, BaseFont.NOT_EMBEDDED);
> > wmTemplate.setFontAndSize(bf, 22);
> > wmTemplate.setColorFill( Color.lightGray );
> > wmTemplate.showText("Testing for the Report");
> > wmTemplate.endText();
> > this.contentByte.addTemplate( wmTemplate, 2f, 1,
> -1,
> > 2f,500,200);
> >
> > Thanks in advance
> >
> > RG
> >
> > __________________________________
> > Do you Yahoo!?
> > Protect your identity with Yahoo! Mail
> AddressGuard
> > http://antispam.yahoo.com/whatsnewfree
> >
> >
> >
>
-------------------------------------------------------
> > This SF.net email is sponsored by: IBM Linux
> Tutorials.
> > Become an expert in LINUX or just sharpen your
> skills. Sign up for IBM's
> > Free Linux Tutorials. Learn everything from the
> bash shell to sys admin.
> > Click now!
>
http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> > _______________________________________________
> > iText-questions mailing list
> > [EMAIL PROTECTED]
> >
>
https://lists.sourceforge.net/lists/listinfo/itext-questions
>
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions