Well, I used setNumberDepth(0) with the all-surrounding Chapter.
Then I add some Sections and (as you told) a number depth of 1 is set by 
default. When I add a Section to a Section the Section's title is shown 
like 3.2 blabla. That's the way I want.
However, when I try to set an indentation to a subsection ( either by using 
setIndentation() or setIndentationLeft() ) the upper section is indented 
but not the subsection! (It is indented to the right when I set an 
indentation with a negative value and vice versa.

I tried:
Chapter mainChapter = new Chapter(new Paragraph(""), 0);
mainChapter.setNumberDepth(0);

Paragraph conditionTitle = new Paragraph("Conditions", chapterFont);
Section sec = mainChapter.addSection(conditionTitle);

Chunk lastConditionChunk = new Chunk(" ");
lastConditionChunk.setGenericTag("lastCondition");

Section conditionSection = sec.addSection("Conditions");
conditionSection.add(...build_a_PdfPTable...);
conditionSection.setindentationLeft(20f);    // causes sec (not 
conditionSec) to be indented!!!
conditionsection.add(lastConditionChunk);    // for generic tag to draw a 
horizontal line after the last condition in the collection

Regards
Dirk

>             
> -------- Original-Nachricht --------
> Datum:  Tue, 05 Dec 2006 16:13:31 +0100
> Von: "Bruno Lowagie (iText)" <[EMAIL PROTECTED]>
> An: Post all your questions about iText here 
> <[email protected]>
> Betreff:  Re: [iText-questions] Indentation of Sections
> 
>             Dirk Ulrich wrote:
> >   But this way, the numbering seems not to be continued in the 
> > scetions/subsections.
> 
> Of course not.
> If you don't set the number depth yourself,
> the default number depth (1) is used.
> I told you before: I don't appreciate it
> when people don't read the docs.
> 
> > Attached is a misformed pdf document.
> 
> I don't understand what's misformed about it.
> Adapt the Dirk.java example so that it demonstrates
> what you think is wrong. I already added the
> setNumberDepth method to the example in attachment.
> br,
> Bruno
> 
        
-- 
Mit freundlichen Grüßen

Dirk Ulrich
Jansenstraße 21
13437 Berlin
fon:0++49-(0)30-40 999 087
mobil:++49-(0)174/948 87 39

"Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de
Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!
-------------------------------------------------------------------------
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