Example usage for com.lowagie.text.pdf PdfPageLabels UPPERCASE_LETTERS

List of usage examples for com.lowagie.text.pdf PdfPageLabels UPPERCASE_LETTERS

Introduction

In this page you can find the example usage for com.lowagie.text.pdf PdfPageLabels UPPERCASE_LETTERS.

Prototype

int UPPERCASE_LETTERS

To view the source code for com.lowagie.text.pdf PdfPageLabels UPPERCASE_LETTERS.

Click Source Link

Document

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)

Usage

From source file:org.pdfsam.console.business.pdf.handlers.PageLabelsCmdExecutor.java

License:Open Source License

/**
 * mapping from the console style variable to the iText variable
 * /*from ww w  .  j  a  va2  s .c o m*/
 * @param style
 * @return iText style variable
 */
private int getPageLabelStyle(String style) {
    int retVal = PdfPageLabels.DECIMAL_ARABIC_NUMERALS;

    if (PageLabel.ARABIC.equals(style)) {
        retVal = PdfPageLabels.DECIMAL_ARABIC_NUMERALS;
    } else if (PageLabel.EMPTY.equals(style)) {
        retVal = PdfPageLabels.EMPTY;
    } else if (PageLabel.LLETTER.equals(style)) {
        retVal = PdfPageLabels.LOWERCASE_LETTERS;
    } else if (PageLabel.LROMAN.equals(style)) {
        retVal = PdfPageLabels.LOWERCASE_ROMAN_NUMERALS;
    } else if (PageLabel.ULETTER.equals(style)) {
        retVal = PdfPageLabels.UPPERCASE_LETTERS;
    } else if (PageLabel.UROMAN.equals(style)) {
        retVal = PdfPageLabels.UPPERCASE_ROMAN_NUMERALS;
    }
    return retVal;
}