public enum ScaleMode extends Enum<ScaleMode>
Enum Constant and Description |
---|
SCALE_HEIGHT
Only height of the image will be proportionally scaled to fit required size that is set using OcrPdfCreatorProperties.setPageSize(Rectangle) method.
|
SCALE_TO_FIT
The image will be scaled to fit within the page width and height dimensions that are set using OcrPdfCreatorProperties.setPageSize(Rectangle) method.
|
SCALE_WIDTH
Only width of the image will be proportionally scaled to fit required size that is set using OcrPdfCreatorProperties.setPageSize(Rectangle) method.
|
Modifier and Type | Method and Description |
---|---|
static ScaleMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScaleMode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final ScaleMode SCALE_WIDTH
OcrPdfCreatorProperties.setPageSize(Rectangle)
method. Height will be equal to the page height that was set using OcrPdfCreatorProperties.setPageSize(Rectangle)
method and width will be proportionally scaled to keep the original aspect ratio.
public static final ScaleMode SCALE_HEIGHT
OcrPdfCreatorProperties.setPageSize(Rectangle)
method. Width will be equal to the page width that was set using OcrPdfCreatorProperties.setPageSize(Rectangle)
method and height will be proportionally scaled to keep the original aspect ratio.
public static final ScaleMode SCALE_TO_FIT
OcrPdfCreatorProperties.setPageSize(Rectangle)
method. Original aspect ratio of the image stays unchanged.
public static ScaleMode[] values()
for (ScaleMode c : ScaleMode.values()) System.out.println(c);
public static ScaleMode valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant with the specified name
NullPointerException
- if the argument is null
Copyright © 1998–2022 iText Group NV. All rights reserved.