Hi, I'm building a set of scripts that create RTF documents.  I'm using
the basic chunks and paragraphs and fonts as below.  Is there any way to
adjust the line spacing of the paragraph?

Thanks,
jmapoles

Document document = new Document( PageSize.LETTER , 72 , 72 , 72 , 72 );
RtfWriter2 writer =  RtfWriter2.getInstance( document , new
FileOutputStream( "C:/RTFtest/log/rtf_5.rtf" ) );
document.open();
                        
RtfFont boldFont_TM_12 = new RtfFont( "Times New Roman", 12,
RtfFont.BOLD );
RtfFont normal_TM_12 = new RtfFont( "Times New Roman", 12 ,
RtfFont.NORMAL );
RtfTab rtfTb = new RtfTab( 72 , RtfTab.ALIGN_LEFT );
                        
Chunk ck1 = new Chunk( "A01\t" );
ck1.setFont( boldFont_TM_12 );

Chunk ck2 = new Chunk( "test test test" );
ck2.setFont( normal_TM_12 );

Paragraph para1 = new Paragraph();
                        
para1.add( ck1 );
para1.add( ck2 );
para1.add( rtfTb );
                        
document.add( para1 );
document.close();


NOTICE BY HEALTH LANGUAGE, INC.
This message, as well as any attached document, contains information from 
Health Language, Inc. that is confidential.  The information is intended only 
for the use of the addressee named above.  If you are not the intended 
recipient, you are hereby notified that any disclosure, copying, distribution 
or the taking of any action in reliance on the contents of this message or its 
attachments is strictly prohibited, and may be unlawful.  If you have received 
this message in error, please delete all electronic copies of this message and 
its attachments, if any, destroy any hard copies you may have created, without 
disclosing the contents, and notify the sender immediately.  Unless expressly 
stated otherwise, nothing contained in this message should be construed as a 
digital or electronic signature, nor is it intended to reflect an intention to 
make an agreement by electronic means.

-------------------------------------------------------------------------
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
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to