Apply Numbering Style in Heading

Contents
[ ]

Aspose.PDF for Java offers many pre-defined numbering styles. These pre-defined numbering styles are stored in an enumeration, NumberingStyle. The pre-defined values of NumberingStyle enumeration and their descriptions are given below:

Heading TypesDescription
NumeralsArabicArab type,for example, 1,1.1,…
NumeralsRomanUppercaseRoman upper type, for example, I,I.II, …
NumeralsRomanLowercaseRoman lower type, for example, i,i.ii, …
LettersUppercaseEnglish upper type, for example, A,A.B, …
LettersLowercaseEnglish lower type, for example, a,a.b, …
The setStyle property of com.aspose.pdf.Heading class is used to set the numbering styles of the headings.

The source code, to obtain the output shown in the above figure, is given below in the example.