Package io.scanbot.sdk.pdfgeneration
Enum PageSize
- java.lang.Object
-
- java.lang.Enum<PageSize>
-
- io.scanbot.sdk.pdfgeneration.PageSize
-
-
Enum Constant Summary
Enum Constants Enum Constant Description A3297 x 420 (mm) 841.89 x 1199.551 (pixels) at 72 DPI.A4210 x 297 (mm) 595.276 x 841.89 (pixels) at 72 DPI.A5148 x 210 (mm) 419.528 x 595.276 (pixels) at 72 DPI.B4250 x 353 (mm) 708.661 x 1000.63 (pixels) at 72 DPI.B5176 x 250 (mm) 498.898 x 708.661 (pixels) at 72 DPI.COMM104.125 x 9.5 (inches) 297 x 684 (pixels) at 72 DPI.CUSTOMPhysical size will be calculated from the image dimensions and the `dpi` parameter.EXECUTIVE7.25 x 10.5 (inches) 522 x 756 (pixels) at 72 DPI.LEGAL8.5 x 14 (inches) 612 x 1008 (pixels) at 72 DPI.LETTER8.5 x 11 (inches) 612 x 792 (pixels) at 72 DPI.US4x64 x 6 (inches) 288 x 432 (pixels) at 72 DPI.US4x84 x 8 (inches) 288 x 576 (pixels) at 72 DPI.US5x75 x 7 (inches) 360 x 504 (pixels) at 72 DPI.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PageSizevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PageSize[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LETTER
public static final PageSize LETTER
8.5 x 11 (inches) 612 x 792 (pixels) at 72 DPI.
-
LEGAL
public static final PageSize LEGAL
8.5 x 14 (inches) 612 x 1008 (pixels) at 72 DPI.
-
A3
public static final PageSize A3
297 x 420 (mm) 841.89 x 1199.551 (pixels) at 72 DPI.
-
A4
public static final PageSize A4
210 x 297 (mm) 595.276 x 841.89 (pixels) at 72 DPI.
-
A5
public static final PageSize A5
148 x 210 (mm) 419.528 x 595.276 (pixels) at 72 DPI.
-
B4
public static final PageSize B4
250 x 353 (mm) 708.661 x 1000.63 (pixels) at 72 DPI.
-
B5
public static final PageSize B5
176 x 250 (mm) 498.898 x 708.661 (pixels) at 72 DPI.
-
EXECUTIVE
public static final PageSize EXECUTIVE
7.25 x 10.5 (inches) 522 x 756 (pixels) at 72 DPI.
-
US4x6
public static final PageSize US4x6
4 x 6 (inches) 288 x 432 (pixels) at 72 DPI.
-
US4x8
public static final PageSize US4x8
4 x 8 (inches) 288 x 576 (pixels) at 72 DPI.
-
US5x7
public static final PageSize US5x7
5 x 7 (inches) 360 x 504 (pixels) at 72 DPI.
-
COMM10
public static final PageSize COMM10
4.125 x 9.5 (inches) 297 x 684 (pixels) at 72 DPI.
-
CUSTOM
public static final PageSize CUSTOM
Physical size will be calculated from the image dimensions and the `dpi` parameter.
-
-
Method Detail
-
values
public static 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 (PageSize c : 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 PageSize 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
-
-