Package com.levigo.jadice.server.pdf
Enum PDFImageOptimizationNode.PageSize
- java.lang.Object
-
- java.lang.Enum<PDFImageOptimizationNode.PageSize>
-
- com.levigo.jadice.server.pdf.PDFImageOptimizationNode.PageSize
-
- All Implemented Interfaces:
Serializable
,Comparable<PDFImageOptimizationNode.PageSize>
- Enclosing class:
- PDFImageOptimizationNode
public static enum PDFImageOptimizationNode.PageSize extends Enum<PDFImageOptimizationNode.PageSize>
Predefined values for the size of the resulting PDF document.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description A0
DIN A0 portrait (841 x 1189 mm)A0_LANDSCAPE
DIN A0 landscape (1189 x 841 mm)A1
DIN A1 portrait (594 x 841 mm)A1_LANDSCAPE
DIN A1 landscape (841 x 594 mm)A2
DIN A2 portrait (420 x 594 mm)A2_LANDSCAPE
DIN A2 landscape (594 x 420 mm)A3
DIN A3 portrait (297 x 420 mm)A3_LANDSCAPE
DIN A3 landscape (420 x 297 mm)A4
DIN A4 portrait (210 x 297 mm)A4_LANDSCAPE
DIN A4 landscape (297 x 210 mm)A5
DIN A5 portrait (148 x 210 mm)A5_LANDSCAPE
DIN A5 landscape (210 x 148 mm)A6
DIN A6 portrait (105 x 148 mm)A6_LANDSCAPE
DIN A6 landscape (148 x 105 mm)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHeight()
int
getWidth()
static PDFImageOptimizationNode.PageSize
valueOf(String name)
Returns the enum constant of this type with the specified name.static PDFImageOptimizationNode.PageSize[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
A0
public static final PDFImageOptimizationNode.PageSize A0
DIN A0 portrait (841 x 1189 mm)
-
A1
public static final PDFImageOptimizationNode.PageSize A1
DIN A1 portrait (594 x 841 mm)
-
A2
public static final PDFImageOptimizationNode.PageSize A2
DIN A2 portrait (420 x 594 mm)
-
A3
public static final PDFImageOptimizationNode.PageSize A3
DIN A3 portrait (297 x 420 mm)
-
A4
public static final PDFImageOptimizationNode.PageSize A4
DIN A4 portrait (210 x 297 mm)
-
A5
public static final PDFImageOptimizationNode.PageSize A5
DIN A5 portrait (148 x 210 mm)
-
A6
public static final PDFImageOptimizationNode.PageSize A6
DIN A6 portrait (105 x 148 mm)
-
A0_LANDSCAPE
public static final PDFImageOptimizationNode.PageSize A0_LANDSCAPE
DIN A0 landscape (1189 x 841 mm)
-
A1_LANDSCAPE
public static final PDFImageOptimizationNode.PageSize A1_LANDSCAPE
DIN A1 landscape (841 x 594 mm)
-
A2_LANDSCAPE
public static final PDFImageOptimizationNode.PageSize A2_LANDSCAPE
DIN A2 landscape (594 x 420 mm)
-
A3_LANDSCAPE
public static final PDFImageOptimizationNode.PageSize A3_LANDSCAPE
DIN A3 landscape (420 x 297 mm)
-
A4_LANDSCAPE
public static final PDFImageOptimizationNode.PageSize A4_LANDSCAPE
DIN A4 landscape (297 x 210 mm)
-
A5_LANDSCAPE
public static final PDFImageOptimizationNode.PageSize A5_LANDSCAPE
DIN A5 landscape (210 x 148 mm)
-
A6_LANDSCAPE
public static final PDFImageOptimizationNode.PageSize A6_LANDSCAPE
DIN A6 landscape (148 x 105 mm)
-
-
Method Detail
-
values
public static PDFImageOptimizationNode.PageSize[] 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 (PDFImageOptimizationNode.PageSize c : PDFImageOptimizationNode.PageSize.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PDFImageOptimizationNode.PageSize valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getWidth
public int getWidth()
- Returns:
- Width in user space units (see ISO-32000-1; 1 inch = 2.54 cm = 72 user units)
-
getHeight
public int getHeight()
- Returns:
- Height in user space units (see ISO-32000-1; 1 inch = 2.54 cm = 72 user units)
-
-