Package org.apache.pdfbox.tools
Enum TextToPDF.PageSizes
- java.lang.Object
-
- java.lang.Enum<TextToPDF.PageSizes>
-
- org.apache.pdfbox.tools.TextToPDF.PageSizes
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TextToPDF.PageSizes>
- Enclosing class:
- TextToPDF
private static enum TextToPDF.PageSizes extends java.lang.Enum<TextToPDF.PageSizes>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) PDRectanglepageSize
-
Constructor Summary
Constructors Modifier Constructor Description privatePageSizes(PDRectangle pageSize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PDRectanglegetPageSize()static TextToPDF.PageSizesvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TextToPDF.PageSizes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LETTER
public static final TextToPDF.PageSizes LETTER
-
LEGAL
public static final TextToPDF.PageSizes LEGAL
-
A0
public static final TextToPDF.PageSizes A0
-
A1
public static final TextToPDF.PageSizes A1
-
A2
public static final TextToPDF.PageSizes A2
-
A3
public static final TextToPDF.PageSizes A3
-
A4
public static final TextToPDF.PageSizes A4
-
A5
public static final TextToPDF.PageSizes A5
-
A6
public static final TextToPDF.PageSizes A6
-
-
Field Detail
-
pageSize
final PDRectangle pageSize
-
-
Constructor Detail
-
PageSizes
private PageSizes(PDRectangle pageSize)
-
-
Method Detail
-
values
public static TextToPDF.PageSizes[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TextToPDF.PageSizes c : TextToPDF.PageSizes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextToPDF.PageSizes valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getPageSize
public PDRectangle getPageSize()
-
-