Package net.webpdf.wsclient.openapi
Class MetadataAnnotation
- java.lang.Object
-
- net.webpdf.wsclient.openapi.MetadataAnnotation
-
public class MetadataAnnotation extends Object
An element of this type describes an Annotation placed on a page of the document.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_APPEARANCEstatic StringJSON_PROPERTY_BORDERstatic StringJSON_PROPERTY_COLORstatic StringJSON_PROPERTY_CONTENTSstatic StringJSON_PROPERTY_DRAW_STYLEstatic StringJSON_PROPERTY_HIDDENstatic StringJSON_PROPERTY_ICON_NAMEstatic StringJSON_PROPERTY_INVISIBLEstatic StringJSON_PROPERTY_LINEstatic StringJSON_PROPERTY_LOCKEDstatic StringJSON_PROPERTY_MARKUPstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_OBJECT_KEYstatic StringJSON_PROPERTY_PAGEstatic StringJSON_PROPERTY_POPUPstatic StringJSON_PROPERTY_POSITIONSstatic StringJSON_PROPERTY_PRINTABLEstatic StringJSON_PROPERTY_ROTATABLEstatic StringJSON_PROPERTY_ROTATIONstatic StringJSON_PROPERTY_SUB_TYPEstatic StringJSON_PROPERTY_VIEWABLEstatic StringJSON_PROPERTY_WRITABLEstatic StringJSON_PROPERTY_ZOOMABLE
-
Constructor Summary
Constructors Constructor Description MetadataAnnotation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetadataAnnotationaddPositionsItem(MetadataPositions positionsItem)MetadataAnnotationappearance(Object appearance)MetadataAnnotationborder(MetadataBorderStyle border)MetadataAnnotationcolor(String color)MetadataAnnotationcontents(String contents)MetadataAnnotationdrawStyle(MetadataDrawStyle drawStyle)booleanequals(Object o)@Nullable ObjectgetAppearance()Defines a set of attributes concerning the appearance of the annotation.@Nullable MetadataBorderStylegetBorder()Get border@Nullable StringgetColor()The main color of visible annotations.@Nullable StringgetContents()The annotation's textual contents or (should an annotation of this type not have such contents) it's description.@Nullable MetadataDrawStylegetDrawStyle()Get drawStyle@Nullable BooleangetHidden()If this value is set to true, the annotation will not be shown on the page and will not be printed either.@Nullable StringgetIconName()If the annotation selects an icon (Text annotations), this is the name of that icon.@Nullable BooleangetInvisible()If this value is set to true, the annotation will be visible on the page only when printed, and provided it is a PDF standard annotation.@Nullable MetadataLinegetLine()Get line@Nullable BooleangetLocked()If this value is set to true, the annotation will be locked so that no changes can be made to it.@Nullable MetadataMarkupgetMarkup()Get markup@Nullable StringgetName()The annotation's name.@Nullable StringgetObjectKey()The object ID of the annotation.@Nullable IntegergetPage()The number of the page the annotation is placed on.@Nullable MetadataPopupgetPopup()Get popup@Nullable List<MetadataPositions>getPositions()Get positions@Nullable BooleangetPrintable()If this value is set to true, the annotation will be included when the page is printed out.@Nullable BooleangetRotatable()If this value is set to true, the annotation shall be rotatable according to the displayed page rotation.@Nullable IntegergetRotation()The annotation's rotation.@Nullable StringgetSubType()The type of an annotation is always \"Annot\", this is the sub type of the annotation determining the actual behavior and function of the annotation.@Nullable BooleangetViewable()If this value is set to true, the annotation will be shown on the document's page.@Nullable BooleangetWritable()If this value is set to true, it will be possible to change the annotation's contents later on.@Nullable BooleangetZoomable()If this value is set to true, the annotation will adjust its own zoom factor as required for the page in order to always be clearly readable / recognizable.inthashCode()MetadataAnnotationhidden(Boolean hidden)MetadataAnnotationiconName(String iconName)MetadataAnnotationinvisible(Boolean invisible)MetadataAnnotationline(MetadataLine line)MetadataAnnotationlocked(Boolean locked)MetadataAnnotationmarkup(MetadataMarkup markup)MetadataAnnotationname(String name)MetadataAnnotationobjectKey(String objectKey)MetadataAnnotationpage(Integer page)MetadataAnnotationpopup(MetadataPopup popup)MetadataAnnotationpositions(List<MetadataPositions> positions)MetadataAnnotationprintable(Boolean printable)MetadataAnnotationrotatable(Boolean rotatable)MetadataAnnotationrotation(Integer rotation)voidsetAppearance(Object appearance)voidsetBorder(MetadataBorderStyle border)voidsetColor(String color)voidsetContents(String contents)voidsetDrawStyle(MetadataDrawStyle drawStyle)voidsetHidden(Boolean hidden)voidsetIconName(String iconName)voidsetInvisible(Boolean invisible)voidsetLine(MetadataLine line)voidsetLocked(Boolean locked)voidsetMarkup(MetadataMarkup markup)voidsetName(String name)voidsetObjectKey(String objectKey)voidsetPage(Integer page)voidsetPopup(MetadataPopup popup)voidsetPositions(List<MetadataPositions> positions)voidsetPrintable(Boolean printable)voidsetRotatable(Boolean rotatable)voidsetRotation(Integer rotation)voidsetSubType(String subType)voidsetViewable(Boolean viewable)voidsetWritable(Boolean writable)voidsetZoomable(Boolean zoomable)MetadataAnnotationsubType(String subType)StringtoString()MetadataAnnotationviewable(Boolean viewable)MetadataAnnotationwritable(Boolean writable)MetadataAnnotationzoomable(Boolean zoomable)
-
-
-
Field Detail
-
JSON_PROPERTY_APPEARANCE
public static final String JSON_PROPERTY_APPEARANCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BORDER
public static final String JSON_PROPERTY_BORDER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COLOR
public static final String JSON_PROPERTY_COLOR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CONTENTS
public static final String JSON_PROPERTY_CONTENTS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DRAW_STYLE
public static final String JSON_PROPERTY_DRAW_STYLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HIDDEN
public static final String JSON_PROPERTY_HIDDEN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ICON_NAME
public static final String JSON_PROPERTY_ICON_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INVISIBLE
public static final String JSON_PROPERTY_INVISIBLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LINE
public static final String JSON_PROPERTY_LINE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LOCKED
public static final String JSON_PROPERTY_LOCKED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MARKUP
public static final String JSON_PROPERTY_MARKUP
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- 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_POPUP
public static final String JSON_PROPERTY_POPUP
- See Also:
- Constant Field Values
-
JSON_PROPERTY_POSITIONS
public static final String JSON_PROPERTY_POSITIONS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRINTABLE
public static final String JSON_PROPERTY_PRINTABLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ROTATABLE
public static final String JSON_PROPERTY_ROTATABLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ROTATION
public static final String JSON_PROPERTY_ROTATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUB_TYPE
public static final String JSON_PROPERTY_SUB_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VIEWABLE
public static final String JSON_PROPERTY_VIEWABLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_WRITABLE
public static final String JSON_PROPERTY_WRITABLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ZOOMABLE
public static final String JSON_PROPERTY_ZOOMABLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
appearance
public MetadataAnnotation appearance(Object appearance)
-
getAppearance
@Nullable public @Nullable Object getAppearance()
Defines a set of attributes concerning the appearance of the annotation.- Returns:
- appearance
-
setAppearance
public void setAppearance(Object appearance)
-
border
public MetadataAnnotation border(MetadataBorderStyle border)
-
getBorder
@Nullable public @Nullable MetadataBorderStyle getBorder()
Get border- Returns:
- border
-
setBorder
public void setBorder(MetadataBorderStyle border)
-
color
public MetadataAnnotation color(String color)
-
getColor
@Nullable public @Nullable String getColor()
The main color of visible annotations. The color will be specified as a hexadecimal RGB value with a number sign before it.- Returns:
- color
-
setColor
public void setColor(String color)
-
contents
public MetadataAnnotation contents(String contents)
-
getContents
@Nullable public @Nullable String getContents()
The annotation's textual contents or (should an annotation of this type not have such contents) it's description.- Returns:
- contents
-
setContents
public void setContents(String contents)
-
drawStyle
public MetadataAnnotation drawStyle(MetadataDrawStyle drawStyle)
-
getDrawStyle
@Nullable public @Nullable MetadataDrawStyle getDrawStyle()
Get drawStyle- Returns:
- drawStyle
-
setDrawStyle
public void setDrawStyle(MetadataDrawStyle drawStyle)
-
hidden
public MetadataAnnotation hidden(Boolean hidden)
-
getHidden
@Nullable public @Nullable Boolean getHidden()
If this value is set to true, the annotation will not be shown on the page and will not be printed either.- Returns:
- hidden
-
setHidden
public void setHidden(Boolean hidden)
-
iconName
public MetadataAnnotation iconName(String iconName)
-
getIconName
@Nullable public @Nullable String getIconName()
If the annotation selects an icon (Text annotations), this is the name of that icon.- Returns:
- iconName
-
setIconName
public void setIconName(String iconName)
-
invisible
public MetadataAnnotation invisible(Boolean invisible)
-
getInvisible
@Nullable public @Nullable Boolean getInvisible()
If this value is set to true, the annotation will be visible on the page only when printed, and provided it is a PDF standard annotation.- Returns:
- invisible
-
setInvisible
public void setInvisible(Boolean invisible)
-
line
public MetadataAnnotation line(MetadataLine line)
-
getLine
@Nullable public @Nullable MetadataLine getLine()
Get line- Returns:
- line
-
setLine
public void setLine(MetadataLine line)
-
locked
public MetadataAnnotation locked(Boolean locked)
-
getLocked
@Nullable public @Nullable Boolean getLocked()
If this value is set to true, the annotation will be locked so that no changes can be made to it.- Returns:
- locked
-
setLocked
public void setLocked(Boolean locked)
-
markup
public MetadataAnnotation markup(MetadataMarkup markup)
-
getMarkup
@Nullable public @Nullable MetadataMarkup getMarkup()
Get markup- Returns:
- markup
-
setMarkup
public void setMarkup(MetadataMarkup markup)
-
name
public MetadataAnnotation name(String name)
-
getName
@Nullable public @Nullable String getName()
The annotation's name. **Important:** This name is optional and in the best case unique in the annotation's page context only. Don't use the name to select an annotation, always prefer selecting objects by object ID, when possible.- Returns:
- name
-
setName
public void setName(String name)
-
objectKey
public MetadataAnnotation objectKey(String objectKey)
-
getObjectKey
@Nullable public @Nullable String getObjectKey()
The object ID of the annotation. **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 MetadataAnnotation page(Integer page)
-
getPage
@Nullable public @Nullable Integer getPage()
The number of the page the annotation is placed on. minimum: 0- Returns:
- page
-
setPage
public void setPage(Integer page)
-
popup
public MetadataAnnotation popup(MetadataPopup popup)
-
getPopup
@Nullable public @Nullable MetadataPopup getPopup()
Get popup- Returns:
- popup
-
setPopup
public void setPopup(MetadataPopup popup)
-
positions
public MetadataAnnotation positions(List<MetadataPositions> positions)
-
addPositionsItem
public MetadataAnnotation addPositionsItem(MetadataPositions positionsItem)
-
getPositions
@Nullable public @Nullable List<MetadataPositions> getPositions()
Get positions- Returns:
- positions
-
setPositions
public void setPositions(List<MetadataPositions> positions)
-
printable
public MetadataAnnotation printable(Boolean printable)
-
getPrintable
@Nullable public @Nullable Boolean getPrintable()
If this value is set to true, the annotation will be included when the page is printed out.- Returns:
- printable
-
setPrintable
public void setPrintable(Boolean printable)
-
rotatable
public MetadataAnnotation rotatable(Boolean rotatable)
-
getRotatable
@Nullable public @Nullable Boolean getRotatable()
If this value is set to true, the annotation shall be rotatable according to the displayed page rotation.- Returns:
- rotatable
-
setRotatable
public void setRotatable(Boolean rotatable)
-
rotation
public MetadataAnnotation rotation(Integer rotation)
-
getRotation
@Nullable public @Nullable Integer getRotation()
The annotation's rotation.- Returns:
- rotation
-
setRotation
public void setRotation(Integer rotation)
-
subType
public MetadataAnnotation subType(String subType)
-
getSubType
@Nullable public @Nullable String getSubType()
The type of an annotation is always \"Annot\", this is the sub type of the annotation determining the actual behavior and function of the annotation. (i.e. Text, Link, Widget etc.)- Returns:
- subType
-
setSubType
public void setSubType(String subType)
-
viewable
public MetadataAnnotation viewable(Boolean viewable)
-
getViewable
@Nullable public @Nullable Boolean getViewable()
If this value is set to true, the annotation will be shown on the document's page.- Returns:
- viewable
-
setViewable
public void setViewable(Boolean viewable)
-
writable
public MetadataAnnotation writable(Boolean writable)
-
getWritable
@Nullable public @Nullable Boolean getWritable()
If this value is set to true, it will be possible to change the annotation's contents later on.- Returns:
- writable
-
setWritable
public void setWritable(Boolean writable)
-
zoomable
public MetadataAnnotation zoomable(Boolean zoomable)
-
getZoomable
@Nullable public @Nullable Boolean getZoomable()
If this value is set to true, the annotation will adjust its own zoom factor as required for the page in order to always be clearly readable / recognizable.- Returns:
- zoomable
-
setZoomable
public void setZoomable(Boolean zoomable)
-
-