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: image002.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