Method | Defined By | ||
---|---|---|---|
PdfPageLabels | |||
addPageLabel(page:int, numberStyle:int, text:String = null, firstPage:int = 1):void
Add or replace a page label. | PdfPageLabels | ||
Gets the page label dictionary to insert into the document. | PdfPageLabels | ||
removePageLabel(page:int):Boolean
Remove a page label. | PdfPageLabels |
Constant | Defined By | ||
---|---|---|---|
DECIMAL_ARABIC_NUMERALS : int = 0 [static] | PdfPageLabels | ||
EMPTY : int = 5 [static] | PdfPageLabels | ||
LOWERCASE_LETTERS : int = 4 [static] | PdfPageLabels | ||
LOWERCASE_ROMAN_NUMERALS : int = 2 [static] | PdfPageLabels | ||
UPPERCASE_LETTERS : int = 3 [static] | PdfPageLabels | ||
UPPERCASE_ROMAN_NUMERALS : int = 1 [static] | PdfPageLabels |
PdfPageLabels | () | Constructor |
public function PdfPageLabels()
addPageLabel | () | method |
public function addPageLabel(page:int, numberStyle:int, text:String = null, firstPage:int = 1):void
Add or replace a page label.
Parameters
page:int — the real page to start the numbering. First page is 1
| |
numberStyle:int — the numbering style such as LOWERCASE_ROMAN_NUMERALS
| |
text:String (default = null ) — the text to prefix the number. Can be null or empty
| |
firstPage:int (default = 1 ) — the first logical page number
|
ArgumentError
|
See also
getDictionary | () | method |
public function getDictionary(writer:PdfWriter):PdfDictionary
Gets the page label dictionary to insert into the document.
Parameters
writer:PdfWriter |
PdfDictionary — the page label dictionary
|
ConversionError
|
removePageLabel | () | method |
public function removePageLabel(page:int):Boolean
Remove a page label. The first page label can not be removed, only changed.
Parameters
page:int — the real page to remove
|
Boolean — true if page label has been removed
|
DECIMAL_ARABIC_NUMERALS | Constant |
public static const DECIMAL_ARABIC_NUMERALS:int = 0
EMPTY | Constant |
public static const EMPTY:int = 5
LOWERCASE_LETTERS | Constant |
public static const LOWERCASE_LETTERS:int = 4
LOWERCASE_ROMAN_NUMERALS | Constant |
public static const LOWERCASE_ROMAN_NUMERALS:int = 2
UPPERCASE_LETTERS | Constant |
public static const UPPERCASE_LETTERS:int = 3
UPPERCASE_ROMAN_NUMERALS | Constant |
public static const UPPERCASE_ROMAN_NUMERALS:int = 1