List of usage examples for com.lowagie.text.pdf PdfPageLabels UPPERCASE_LETTERS
int UPPERCASE_LETTERS
To view the source code for com.lowagie.text.pdf PdfPageLabels UPPERCASE_LETTERS.
Click Source Link
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; }