Package net.webpdf.wsclient.openapi
Class OperationJpeg
- java.lang.Object
-
- net.webpdf.wsclient.openapi.OperationJpeg
-
public class OperationJpeg extends Object
Defines a target JPEG image format.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOperationJpeg.MetricsEnumUnit for the X-axis/Y-axis position and signature field height and width arguments: * pt = Points(1/72 inch) * pc = Picas(12 points) * px = Pixels(1/96 inch) * mm = Millimeters * in = Inches
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DPIstatic StringJSON_PROPERTY_HEIGHTstatic StringJSON_PROPERTY_JPEG_QUALITYstatic StringJSON_PROPERTY_METRICSstatic StringJSON_PROPERTY_SIZE_OPTIMIZATIONstatic StringJSON_PROPERTY_WIDTH
-
Constructor Summary
Constructors Constructor Description OperationJpeg()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationJpegdpi(Integer dpi)booleanequals(Object o)@Nullable IntegergetDpi()This parameter is used to define the image's DPI resolution.@Nullable IntegergetHeight()Used to limit the maximum height of the exported image. 0 = No restriction minimum: 0@Nullable IntegergetJpegQuality()When exporting to \"jpg\" format, this parameter can be used to define the image's quality as a percentage.@Nullable OperationJpeg.MetricsEnumgetMetrics()Unit for the X-axis/Y-axis position and signature field height and width arguments: * pt = Points(1/72 inch) * pc = Picas(12 points) * px = Pixels(1/96 inch) * mm = Millimeters * in = Inches@Nullable OperationSizeOptimizationgetSizeOptimization()Get sizeOptimization@Nullable IntegergetWidth()Used to limit the maximum width of the exported image. 0 = No restriction minimum: 0inthashCode()OperationJpegheight(Integer height)OperationJpegjpegQuality(Integer jpegQuality)OperationJpegmetrics(OperationJpeg.MetricsEnum metrics)voidsetDpi(Integer dpi)voidsetHeight(Integer height)voidsetJpegQuality(Integer jpegQuality)voidsetMetrics(OperationJpeg.MetricsEnum metrics)voidsetSizeOptimization(OperationSizeOptimization sizeOptimization)voidsetWidth(Integer width)OperationJpegsizeOptimization(OperationSizeOptimization sizeOptimization)StringtoString()OperationJpegwidth(Integer width)
-
-
-
Field Detail
-
JSON_PROPERTY_DPI
public static final String JSON_PROPERTY_DPI
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HEIGHT
public static final String JSON_PROPERTY_HEIGHT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_JPEG_QUALITY
public static final String JSON_PROPERTY_JPEG_QUALITY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_METRICS
public static final String JSON_PROPERTY_METRICS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SIZE_OPTIMIZATION
public static final String JSON_PROPERTY_SIZE_OPTIMIZATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_WIDTH
public static final String JSON_PROPERTY_WIDTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
dpi
public OperationJpeg dpi(Integer dpi)
-
getDpi
@Nullable public @Nullable Integer getDpi()
This parameter is used to define the image's DPI resolution. The larger the value, the larger the image's x, y resolution. In addition, the larger the DPI resolution, the larger the size of the image file. minimum: 0 maximum: 9600- Returns:
- dpi
-
setDpi
public void setDpi(Integer dpi)
-
height
public OperationJpeg height(Integer height)
-
getHeight
@Nullable public @Nullable Integer getHeight()
Used to limit the maximum height of the exported image. 0 = No restriction minimum: 0- Returns:
- height
-
setHeight
public void setHeight(Integer height)
-
jpegQuality
public OperationJpeg jpegQuality(Integer jpegQuality)
-
getJpegQuality
@Nullable public @Nullable Integer getJpegQuality()
When exporting to \"jpg\" format, this parameter can be used to define the image's quality as a percentage. The value must fall between 0 and 100. The larger the value, the better the quality and the lower the compression level. minimum: 0 maximum: 100- Returns:
- jpegQuality
-
setJpegQuality
public void setJpegQuality(Integer jpegQuality)
-
metrics
public OperationJpeg metrics(OperationJpeg.MetricsEnum metrics)
-
getMetrics
@Nullable public @Nullable OperationJpeg.MetricsEnum getMetrics()
Unit for the X-axis/Y-axis position and signature field height and width arguments: * pt = Points(1/72 inch) * pc = Picas(12 points) * px = Pixels(1/96 inch) * mm = Millimeters * in = Inches- Returns:
- metrics
-
setMetrics
public void setMetrics(OperationJpeg.MetricsEnum metrics)
-
sizeOptimization
public OperationJpeg sizeOptimization(OperationSizeOptimization sizeOptimization)
-
getSizeOptimization
@Nullable public @Nullable OperationSizeOptimization getSizeOptimization()
Get sizeOptimization- Returns:
- sizeOptimization
-
setSizeOptimization
public void setSizeOptimization(OperationSizeOptimization sizeOptimization)
-
width
public OperationJpeg width(Integer width)
-
getWidth
@Nullable public @Nullable Integer getWidth()
Used to limit the maximum width of the exported image. 0 = No restriction minimum: 0- Returns:
- width
-
setWidth
public void setWidth(Integer width)
-
-