Sorry I didn't make the question clearly. I am creating RTF not PDF 
file. The format is

aaaaaaaaaaa aaaaaaaaaaaaa aaaaaaaaaaaaaaa aaaaaaaaaaaaaa aaaaaaaaaaaa aaaaa
       bbbbbbbbbb b b   bbbbbbbbbbbbbb bbbbbbbbb  b   bbbbb bbbbbb  bbbb
        cccccccccccccccccc ccccccccccc ccccc cccccccccccc cccccccccccccc 
ccccc
        dddddddddddddddd.

-Henry

Bruno Lowagie wrote:

>Henry Lu wrote:
>  
>
>>Could some one show me an example how to create a text with the 
>>following format?
>>
>>The text has 2000+ characters
>>What I'd like to print out is:
>>first line is printed out across the page and rest of the text is 
>>idented 1" from the left like this:
>>
>>This is a test. But this should be printed in the way that I'd like to 
>>see first line is nomall line and
>>        scond line starts from the 1" from the left. and the test text 
>>continues aaaaaaaaaaaaaaa
>>    
>>
>
>This is only possible if you add Paragraph objects to a
>ColumnText (or a PdfPCell) object. You need this method:
>http://itextdocs.lowagie.com/docs/com/lowagie/text/pdf/ColumnText.html#setFollowingIndent(float)
>For more info on columns, see
>http://itextdocs.lowagie.com/tutorial/objects/columns/
>br,
>Bruno
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share your
>opinions on IT & business topics through brief surveys -- and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>iText-questions mailing list
>iText-questions@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>
>  
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to