Thanks for the answer.

Yes, I am the one who creates the whole document ;-)

I think this does not solve the problem. Referring to the sources, numbers for chapters and sections are inserted as separate chunk in front of the title paragraph. I found out that setting the depth to zero does not show the original numbers. So using a pdfPTable would be perfect to set the width, but I would have to keep track of the numbers for chapters and sections myself.

- Friedhelm

Am 30.03.11 04:44, schrieb Nurettin DAG:
I believe you are the one building the headers/chapters or whatever you call it. If so, you can use a PdfPTable design where numbering value is left aligned on the 1st column and label is left aligned in the second column.

If you do not want to deal with table design then you can also achieve the same look using String.format

String.format("%5s", number); will pad the right of string with blank chars until 5 chars. For right aligned you may use -5.

Good luck
Nurettin

On Tue, Mar 29, 2011 at 9:46 AM, fridi <[email protected] <mailto:[email protected]>> wrote:

    Hello,

    I am wondering if it is possible to have an indentation (sorry, if
    this
    is the wrong word for it) for headers (chapters / sections) like this:

    1.       Main Chapter
    1.1     Sub 1
    1.2     Sub 2
    1.2.1  Sub x

    Thanks in advance for any hint,
      Friedhelm

    
------------------------------------------------------------------------------
    Enable your software for Intel(R) Active Management Technology to
    meet the
    growing manageability and security demands of your customers.
    Businesses
    are taking advantage of Intel(R) vPro (TM) technology - will your
    software
    be a part of the solution? Download the Intel(R) Manageability Checker
    today! http://p.sf.net/sfu/intel-dev2devmar
    _______________________________________________
    iText-questions mailing list
    [email protected]
    <mailto:[email protected]>
    https://lists.sourceforge.net/lists/listinfo/itext-questions

    iText(R) is a registered trademark of 1T3XT BVBA.
    Many questions posted to this list can (and will) be answered with
    a reference to the iText book: http://www.itextpdf.com/book/
    Please check the keywords list before you ask for examples:
    http://itextpdf.com/themes/keywords.php




--
Nurettin DAG


------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar


_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to