Page labels are used to identify each page visually on the screen or in print.
- Author
- Paulo Soares (psoar.nosp@m.es@c.nosp@m.onsis.nosp@m.te.p.nosp@m.t)
◆ PdfPageLabels()
iTextSharp.text.pdf.PdfPageLabels.PdfPageLabels |
( |
| ) |
|
Creates a new PdfPageLabel with a default logical page 1
◆ AddPageLabel() [1/4]
void iTextSharp.text.pdf.PdfPageLabels.AddPageLabel |
( |
int |
page, |
|
|
int |
numberStyle |
|
) |
| |
Adds or replaces a page label. There is no text prefix and the first logical page has the default of 1.
- Parameters
-
page | the real page to start the numbering. First page is 1 |
numberStyle | the numbering style such as LOWERCASE_ROMAN_NUMERALS |
◆ AddPageLabel() [2/4]
void iTextSharp.text.pdf.PdfPageLabels.AddPageLabel |
( |
int |
page, |
|
|
int |
numberStyle, |
|
|
string |
text |
|
) |
| |
Adds or replaces a page label. The first logical page has the default of 1.
- Parameters
-
page | the real page to start the numbering. First page is 1 |
numberStyle | the numbering style such as LOWERCASE_ROMAN_NUMERALS |
text | the text to prefix the number. Can be null or empty |
◆ AddPageLabel() [3/4]
void iTextSharp.text.pdf.PdfPageLabels.AddPageLabel |
( |
int |
page, |
|
|
int |
numberStyle, |
|
|
string |
text, |
|
|
int |
firstPage |
|
) |
| |
Adds or replaces a page label.
- Parameters
-
page | the real page to start the numbering. First page is 1 |
numberStyle | the numbering style such as LOWERCASE_ROMAN_NUMERALS |
text | the text to prefix the number. Can be null or empty |
firstPage | the first logical page number |
◆ AddPageLabel() [4/4]
Adds or replaces a page label.
◆ GetPageLabelFormats()
Retrieves the page labels from a PDF as an array of PdfPageLabelFormat objects.
- Parameters
-
reader | a PdfReader object that has the page labels you want to retrieve |
- Returns
- a PdfPageLabelEntry array, containing an entry for each format change or
null
if no page labels are present
◆ GetPageLabels()
static String [] iTextSharp.text.pdf.PdfPageLabels.GetPageLabels |
( |
PdfReader |
reader | ) |
|
|
static |
Retrieves the page labels from a PDF as an array of String objects.
- Parameters
-
reader | a PdfReader object that has the page labels you want to retrieve |
- Returns
- a String array or
null
if no page labels are present
◆ RemovePageLabel()
void iTextSharp.text.pdf.PdfPageLabels.RemovePageLabel |
( |
int |
page | ) |
|
Removes a page label. The first page lagel can not be removed, only changed.
- Parameters
-
page | the real page to remove |
◆ DECIMAL_ARABIC_NUMERALS
const int iTextSharp.text.pdf.PdfPageLabels.DECIMAL_ARABIC_NUMERALS = 0 |
|
static |
Logical pages will have the form 1,2,3,...
◆ EMPTY
const int iTextSharp.text.pdf.PdfPageLabels.EMPTY = 5 |
|
static |
No logical page numbers are generated but fixed text may still exist
◆ LOWERCASE_LETTERS
const int iTextSharp.text.pdf.PdfPageLabels.LOWERCASE_LETTERS = 4 |
|
static |
Logical pages will have the form of uppercase letters (a to z for the first 26 pages, aa to zz for the next 26, and so on)
◆ LOWERCASE_ROMAN_NUMERALS
const int iTextSharp.text.pdf.PdfPageLabels.LOWERCASE_ROMAN_NUMERALS = 2 |
|
static |
Logical pages will have the form i,ii,iii,iv,...
◆ UPPERCASE_LETTERS
const int iTextSharp.text.pdf.PdfPageLabels.UPPERCASE_LETTERS = 3 |
|
static |
Logical pages will have the form of uppercase letters (A to Z for the first 26 pages, AA to ZZ for the next 26, and so on)
◆ UPPERCASE_ROMAN_NUMERALS
const int iTextSharp.text.pdf.PdfPageLabels.UPPERCASE_ROMAN_NUMERALS = 1 |
|
static |
Logical pages will have the form I,II,III,IV,...
The documentation for this class was generated from the following file: