Package org.apache.fop.pdf
Class PDFPageLabels
java.lang.Object
org.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFDictionary
org.apache.fop.pdf.PDFNumberTreeNode
org.apache.fop.pdf.PDFPageLabels
- All Implemented Interfaces:
PDFWritable
Class representing a PDF /PageLabels dictionary.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private int
private int
private String
private static final int
private static final int
private static final Pattern
private static final Pattern
private static final Pattern
private static final int
private static final PDFName
private static final PDFName
private static final PDFName
private static final PDFName
private static final PDFName
private static final int
private static final int
Fields inherited from class org.apache.fop.pdf.PDFDictionary
entries, order
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPageLabel
(int index, String pageLabel) Adds a new entry, if necessary, to the /PageLabels dictionary.private int
alphabeticToArabic
(char c) private int
romanToArabic
(String roman) Methods inherited from class org.apache.fop.pdf.PDFNumberTreeNode
addToNums, getKids, getLowerLimit, getNums, getUpperLimit, setKids, setLowerLimit, setNums, setUpperLimit
Methods inherited from class org.apache.fop.pdf.PDFDictionary
containsKey, get, getChildren, getChildren, keySet, output, put, put, remove, writeDictionary
Methods inherited from class org.apache.fop.pdf.PDFObject
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF, toPDFString
-
Field Details
-
DECIMAL
private static final int DECIMAL- See Also:
-
LOWER_ALPHA
private static final int LOWER_ALPHA- See Also:
-
UPPER_ALPHA
private static final int UPPER_ALPHA- See Also:
-
LOWER_ROMAN
private static final int LOWER_ROMAN- See Also:
-
UPPER_ROMAN
private static final int UPPER_ROMAN- See Also:
-
PREFIX
private static final int PREFIX- See Also:
-
S_DECIMAL
-
S_UPPER_ROMAN
-
S_LOWER_ROMAN
-
S_UPPER_ALPHA
-
S_LOWER_ALPHA
-
MATCH_DECIMAL
-
MATCH_ROMAN
-
MATCH_LETTER
-
lastPageLabelType
private int lastPageLabelType -
lastPageNumber
private int lastPageNumber -
lastZeroPaddingPrefix
-
-
Constructor Details
-
PDFPageLabels
public PDFPageLabels()Create the /PageLabels dictionary
-
-
Method Details
-
addPageLabel
Adds a new entry, if necessary, to the /PageLabels dictionary.- Parameters:
index
- the page index (0 for page 1)pageLabel
- the page number as a string
-
romanToArabic
-
alphabeticToArabic
private int alphabeticToArabic(char c)
-