Hi,

 

I sent the email below but did not receive any responses. I'll try and
format my question a little differently. 

 

Is there a way to insert tab characters into a line to align text? Such as 

 

1. <tab> text

Indented text

 

My goal is:

 

1     Test

      Test

1.1   Test

      Test

 

I have accomplished the result using a table where column 1 contains the
heading number and column 2 contains the text.  This seems like overkill
though.  There must be an easier way.

 


1.             Test


Test

Test

 

Paul

 

 

  _____  

From: Paul Baker [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 10, 2007 11:27 PM
To: '[email protected]'
Subject: Indenting chapter text following paragraphs

 

How do you align the text that follows a numbered chapter with subsequent
paragraphs?

 

Desired result:

 

1     Test

      Test

1.1   Test

      Test

 

My current output looks like:

 

1 Test

      Test

1.1 Test

      Test

 

 

 

Actual Code:

 

      document.open();

      paragraph = new Paragraph();

      phrase = new Phrase();

      font = new Font(Font.HELVETICA, 12, Font.BOLD);

      Chunk chunk = new Chunk("SUPPLIERS' CONTACTS", font);

      phrase.add(chunk);

      paragraph.add(phrase);

      ChapterAutoNumber chapter1 = new ChapterAutoNumber(paragraph);

      

      paragraph = new Paragraph();

      paragraph.setSpacingAfter(1);

      paragraph.setIndentationLeft(50);

      phrase = new Phrase();

      font = new Font(Font.HELVETICA, 10, Font.BOLD);

      phrase.add(new Chunk("Completed sheets and changes of basic data and
procedure must be forwarded to:", font));

      paragraph.add(phrase);

      chapter1.add(paragraph);

      document.add(chapter1);

 

 

Actual Output:

 



I want to align the text SUPPLIERS' CONTACTS with the text in the following
paragraph.

 

Please advise..

 

Thanks in advance.

 

Paul

 

 

 

<<attachment: image001.jpg>>

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to