Thanks

can i write code like this ?


            PdfWriter writer = PdfWriter.getInstance(document,
new                        FileOutputStream(RESULT+".pdf"));
            document.open();
           PdfContentByte cb = writer.getDirectContent();
           ColumnText ct = new ColumnText(cb);
            ct.setSimpleColumn(x, y-height/2, x+width, height+y);
            ct.setAlignment(Element.ALIGN_LEFT);
            ct.setFollowingIndent(0.0f);
            ct.setIndent(indent);

// set character spacing in paragraph

            cb.setCharacterSpacing(charspacing);
            Paragraph pa = new Paragraph(text, font);
            pa.setLeading(leding, 1.0f);

            ct.addElement(pa);

2009/6/9 1T3XT info <[email protected]>

> suresh patidar wrote:
> > Hello,
> >
> > i am using ColumnText class to add paragraph in pdf file.
> > i want to set Character Spacing in paragraph but Paragraph and
> > ColumnText class has no method to set  Character Spacing.
> > so how can i do it.
>
> You don't. Using the higher level objects, you can only
> change the ratio between word spacing and char spacing
> when aligning text: http://1t3xt.be/?X000194
> --
> This answer is provided by 1T3XT BVBA
> http://www.1t3xt.com/ - http://www.1t3xt.info
>
>
> ------------------------------------------------------------------------------
> 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/
>
------------------------------------------------------------------------------
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