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]> 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]
> 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