Hello,

i want to write text with stroke. i am using below code.
stroke line is come 50-50% inside/outside text. but i want it to outline of
text.
so how can i do it.

PdfContentByte cb = writer.getDirectContent();
cb.beginText();
                    cb.setTextMatrix(a, b, c, d, x, y);
                    cb.setColorFill(Color.black);
                    cb.setFontAndSize(bf, 40);
                    cb.setColorStroke(Color.white);
                    cb.setLineWidth(1.2f);

cb.setTextRenderingMode(PdfContentByte.TEXT_RENDER_MODE_FILL_STROKE);
                    cb.showText("Suresh");
                    cb.endText();
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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