Apply Numbering Style in Heading
Contents
[
Hide
]Headings are the important parts of any document. Writers always try to make headings more prominent and meaningful to its readers. If there are more than one headings in a document, a writer has several options to organize these headings. One of the most common approach to organize headings is to write headings in Numbering Style.
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 Types | Description |
---|---|
NumeralsArabic | Arab type,for example, 1,1.1,… |
NumeralsRomanUppercase | Roman upper type, for example, I,I.II, … |
NumeralsRomanLowercase | Roman lower type, for example, i,i.ii, … |
LettersUppercase | English upper type, for example, A,A.B, … |
LettersLowercase | English 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.