Package net.webpdf.wsclient.openapi
Class MetadataImage
- java.lang.Object
-
- net.webpdf.wsclient.openapi.MetadataImage
-
public class MetadataImage extends Object
Defines an image resource of a PDF document.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BITS_PER_COMPONENTstatic StringJSON_PROPERTY_HEIGHTstatic StringJSON_PROPERTY_OBJECT_KEYstatic StringJSON_PROPERTY_PAGEstatic StringJSON_PROPERTY_SUFFIXstatic StringJSON_PROPERTY_WIDTH
-
Constructor Summary
Constructors Constructor Description MetadataImage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetadataImagebitsPerComponent(Integer bitsPerComponent)booleanequals(Object o)@Nullable IntegergetBitsPerComponent()The number of bits used to encode one color component.@Nullable IntegergetHeight()The height of the image in points.@Nullable StringgetObjectKey()The object ID of the image resource definition.@Nullable IntegergetPage()The number of the page containing the image resource.@Nullable StringgetSuffix()Returns the file type suffix of the image.@Nullable IntegergetWidth()The width of the image in points.inthashCode()MetadataImageheight(Integer height)MetadataImageobjectKey(String objectKey)MetadataImagepage(Integer page)voidsetBitsPerComponent(Integer bitsPerComponent)voidsetHeight(Integer height)voidsetObjectKey(String objectKey)voidsetPage(Integer page)voidsetSuffix(String suffix)voidsetWidth(Integer width)MetadataImagesuffix(String suffix)StringtoString()MetadataImagewidth(Integer width)
-
-
-
Field Detail
-
JSON_PROPERTY_BITS_PER_COMPONENT
public static final String JSON_PROPERTY_BITS_PER_COMPONENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HEIGHT
public static final String JSON_PROPERTY_HEIGHT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OBJECT_KEY
public static final String JSON_PROPERTY_OBJECT_KEY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAGE
public static final String JSON_PROPERTY_PAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUFFIX
public static final String JSON_PROPERTY_SUFFIX
- See Also:
- Constant Field Values
-
JSON_PROPERTY_WIDTH
public static final String JSON_PROPERTY_WIDTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
bitsPerComponent
public MetadataImage bitsPerComponent(Integer bitsPerComponent)
-
getBitsPerComponent
@Nullable public @Nullable Integer getBitsPerComponent()
The number of bits used to encode one color component. minimum: 0- Returns:
- bitsPerComponent
-
setBitsPerComponent
public void setBitsPerComponent(Integer bitsPerComponent)
-
height
public MetadataImage height(Integer height)
-
getHeight
@Nullable public @Nullable Integer getHeight()
The height of the image in points.- Returns:
- height
-
setHeight
public void setHeight(Integer height)
-
objectKey
public MetadataImage objectKey(String objectKey)
-
getObjectKey
@Nullable public @Nullable String getObjectKey()
The object ID of the image resource definition. **Info:** A PDF object ID consists of two numbers, where the first number selects the object's number and the second the \"generation\" of the object. The object ID shall always be unique within the context of the document and can be used to select a specific object.- Returns:
- objectKey
-
setObjectKey
public void setObjectKey(String objectKey)
-
page
public MetadataImage page(Integer page)
-
getPage
@Nullable public @Nullable Integer getPage()
The number of the page containing the image resource. minimum: 0- Returns:
- page
-
setPage
public void setPage(Integer page)
-
suffix
public MetadataImage suffix(String suffix)
-
getSuffix
@Nullable public @Nullable String getSuffix()
Returns the file type suffix of the image. (This suffix depends on the used image encoding and therefore is highly reliable.)- Returns:
- suffix
-
setSuffix
public void setSuffix(String suffix)
-
width
public MetadataImage width(Integer width)
-
getWidth
@Nullable public @Nullable Integer getWidth()
The width of the image in points.- Returns:
- width
-
setWidth
public void setWidth(Integer width)
-
-