PageLabels
Overview
PageLabels is a class in Aspose.PDF FOSS for Java.
Page labelling for a PDF document (ISO 32000-1:2008, §12.4.2).
This class provides 4 methods for working with PageLabels objects in Java programs.
Available methods include: getLabel, getRanges, parse, updateLabel.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: ranges.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
ranges | List<LabelRange> | Read | Returns all label ranges. |
Methods
| Signature | Description |
|---|---|
parse(catalog: PdfDictionary) → PageLabels | Parses page labels from the catalog’s {@code /PageLabels} number tree. |
updateLabel(pageIndex: int, label: PageLabel) | Updates or adds a page-label range starting at the given 0-based page index. |
getLabel(pageIndex: int) → String | Returns the display label for a given 0-based page index. |
getRanges() → List<LabelRange> | Returns all label ranges. |