Package net.webpdf.wsclient.openapi
Class OperationTextAnnotation
- java.lang.Object
-
- net.webpdf.wsclient.openapi.OperationTextAnnotation
-
public class OperationTextAnnotation extends Object
An annotation that adds a note icon to a page.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOperationTextAnnotation.AppearanceGenerationEnumDetermines for which named annotations appearance streams shall be generated.static classOperationTextAnnotation.IconEnumUsed to specify the icon that should be displayed for the note on the page.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_APPEARANCE_GENERATIONstatic StringJSON_PROPERTY_COLORstatic StringJSON_PROPERTY_CONTENTSstatic StringJSON_PROPERTY_CREATORstatic StringJSON_PROPERTY_CUSTOM_ICON_NAMEstatic StringJSON_PROPERTY_HIDDENstatic StringJSON_PROPERTY_ICONstatic StringJSON_PROPERTY_INITIAL_OPENstatic StringJSON_PROPERTY_INTENTSstatic StringJSON_PROPERTY_INVISIBLEstatic StringJSON_PROPERTY_LOCKEDstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_NORMAL_APPEARANCEstatic StringJSON_PROPERTY_OPACITYstatic StringJSON_PROPERTY_PAGEstatic StringJSON_PROPERTY_POSITIONstatic StringJSON_PROPERTY_PRINTABLEstatic StringJSON_PROPERTY_ROTATABLEstatic StringJSON_PROPERTY_SUBJECTstatic StringJSON_PROPERTY_VIEWABLEstatic StringJSON_PROPERTY_WRITABLEstatic StringJSON_PROPERTY_ZOOMABLE
-
Constructor Summary
Constructors Constructor Description OperationTextAnnotation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationTextAnnotationappearanceGeneration(OperationTextAnnotation.AppearanceGenerationEnum appearanceGeneration)OperationTextAnnotationcolor(String color)OperationTextAnnotationcontents(String contents)OperationTextAnnotationcreator(String creator)OperationTextAnnotationcustomIconName(String customIconName)booleanequals(Object o)@Nullable OperationTextAnnotation.AppearanceGenerationEnumgetAppearanceGeneration()Determines for which named annotations appearance streams shall be generated.@Nullable StringgetColor()The annotation color will change the main color of visible annotations.@Nullable StringgetContents()This value is used to configure the text content of the annotation, with the way in which it is displayed depending heavily on the specific annotation type (for example, in the case of a text note, this would be the text content of the annotation's popup).@Nullable StringgetCreator()Used to specify the author of the annotation.@Nullable StringgetCustomIconName()Sets a custom icon name for this annotation.@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 OperationTextAnnotation.IconEnumgetIcon()Used to specify the icon that should be displayed for the note on the page.@Nullable BooleangetInitialOpen()If this value is set to \"true,\" the popup for the corresponding \"note\" annotation will be opened as soon as the corresponding document page is viewed.@Nullable StringgetIntents()Used to set the intention of the annotation.@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 BooleangetLocked()If this value is set to true, the annotation will be locked so that no changes can be made to it.@Nullable StringgetName()Used to specify the name of the annotation.@Nullable OperationAppearanceSourcegetNormalAppearance()Get normalAppearance@Nullable IntegergetOpacity()This percentage value is used to set the annotation's transparency.@Nullable IntegergetPage()Set the number of the page, the annotation shall be placed on.@Nullable OperationRectanglegetPosition()Get position@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 StringgetSubject()Used to specify the subject 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()OperationTextAnnotationhidden(Boolean hidden)OperationTextAnnotationicon(OperationTextAnnotation.IconEnum icon)OperationTextAnnotationinitialOpen(Boolean initialOpen)OperationTextAnnotationintents(String intents)OperationTextAnnotationinvisible(Boolean invisible)OperationTextAnnotationlocked(Boolean locked)OperationTextAnnotationname(String name)OperationTextAnnotationnormalAppearance(OperationAppearanceSource normalAppearance)OperationTextAnnotationopacity(Integer opacity)OperationTextAnnotationpage(Integer page)OperationTextAnnotationposition(OperationRectangle position)OperationTextAnnotationprintable(Boolean printable)OperationTextAnnotationrotatable(Boolean rotatable)voidsetAppearanceGeneration(OperationTextAnnotation.AppearanceGenerationEnum appearanceGeneration)voidsetColor(String color)voidsetContents(String contents)voidsetCreator(String creator)voidsetCustomIconName(String customIconName)voidsetHidden(Boolean hidden)voidsetIcon(OperationTextAnnotation.IconEnum icon)voidsetInitialOpen(Boolean initialOpen)voidsetIntents(String intents)voidsetInvisible(Boolean invisible)voidsetLocked(Boolean locked)voidsetName(String name)voidsetNormalAppearance(OperationAppearanceSource normalAppearance)voidsetOpacity(Integer opacity)voidsetPage(Integer page)voidsetPosition(OperationRectangle position)voidsetPrintable(Boolean printable)voidsetRotatable(Boolean rotatable)voidsetSubject(String subject)voidsetViewable(Boolean viewable)voidsetWritable(Boolean writable)voidsetZoomable(Boolean zoomable)OperationTextAnnotationsubject(String subject)StringtoString()OperationTextAnnotationviewable(Boolean viewable)OperationTextAnnotationwritable(Boolean writable)OperationTextAnnotationzoomable(Boolean zoomable)
-
-
-
Field Detail
-
JSON_PROPERTY_APPEARANCE_GENERATION
public static final String JSON_PROPERTY_APPEARANCE_GENERATION
- 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_CREATOR
public static final String JSON_PROPERTY_CREATOR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CUSTOM_ICON_NAME
public static final String JSON_PROPERTY_CUSTOM_ICON_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HIDDEN
public static final String JSON_PROPERTY_HIDDEN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ICON
public static final String JSON_PROPERTY_ICON
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INITIAL_OPEN
public static final String JSON_PROPERTY_INITIAL_OPEN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INTENTS
public static final String JSON_PROPERTY_INTENTS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INVISIBLE
public static final String JSON_PROPERTY_INVISIBLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LOCKED
public static final String JSON_PROPERTY_LOCKED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NORMAL_APPEARANCE
public static final String JSON_PROPERTY_NORMAL_APPEARANCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OPACITY
public static final String JSON_PROPERTY_OPACITY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAGE
public static final String JSON_PROPERTY_PAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_POSITION
public static final String JSON_PROPERTY_POSITION
- 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_SUBJECT
public static final String JSON_PROPERTY_SUBJECT
- 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
-
appearanceGeneration
public OperationTextAnnotation appearanceGeneration(OperationTextAnnotation.AppearanceGenerationEnum appearanceGeneration)
-
getAppearanceGeneration
@Nullable public @Nullable OperationTextAnnotation.AppearanceGenerationEnum getAppearanceGeneration()
Determines for which named annotations appearance streams shall be generated. **Important:** Per definition some named annotations are defined as standard names and PDF readers shall provide the means to draw those. * always = An appearance stream shall be prepared for all created named annotations. * never = Don't provide appearance streams and rely on PDF readers to dynamically generate a proper representation of named annotations. * nonStandard = Only provide appearance streams for non-standard annotations.- Returns:
- appearanceGeneration
-
setAppearanceGeneration
public void setAppearanceGeneration(OperationTextAnnotation.AppearanceGenerationEnum appearanceGeneration)
-
color
public OperationTextAnnotation color(String color)
-
getColor
@Nullable public @Nullable String getColor()
The annotation color will change the main color of visible annotations. The color needs to be specified as a hexadecimal RGB value with a number sign before it.- Returns:
- color
-
setColor
public void setColor(String color)
-
contents
public OperationTextAnnotation contents(String contents)
-
getContents
@Nullable public @Nullable String getContents()
This value is used to configure the text content of the annotation, with the way in which it is displayed depending heavily on the specific annotation type (for example, in the case of a text note, this would be the text content of the annotation's popup).- Returns:
- contents
-
setContents
public void setContents(String contents)
-
creator
public OperationTextAnnotation creator(String creator)
-
getCreator
@Nullable public @Nullable String getCreator()
Used to specify the author of the annotation.- Returns:
- creator
-
setCreator
public void setCreator(String creator)
-
customIconName
public OperationTextAnnotation customIconName(String customIconName)
-
getCustomIconName
@Nullable public @Nullable String getCustomIconName()
Sets a custom icon name for this annotation. **Important:** This name shall always take precedence over possibly set standard names. (icon)- Returns:
- customIconName
-
setCustomIconName
public void setCustomIconName(String customIconName)
-
hidden
public OperationTextAnnotation 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)
-
icon
public OperationTextAnnotation icon(OperationTextAnnotation.IconEnum icon)
-
getIcon
@Nullable public @Nullable OperationTextAnnotation.IconEnum getIcon()
Used to specify the icon that should be displayed for the note on the page. The following values are available: * check = The text annotation approves the content. * checkmark = The text annotation adds a gray checkmark to the content. * circle = The text annotation is a comment on the circled content. * comment = The text annotation is a comment to the marked contents. * cross = The text annotation marks the content or crosses it out. * crossHair = The text annotation targets the content in the crosshair. * insert = The text annotation is suggesting inserting some content. * key = The text annotation marks or contains a key content/information. * note = The text annotation is a mere note concerning the marked content. * help = The text annotation provides helpful information concerning the marked content. * newParagraph = The text annotation suggests adding a new Paragraph at a specific point. * paragraph = The text annotation is concerning the whole paragraph. * rightArrow = The text annotation is concerning the content to the right. * rightPointer = The text annotation is concerning the content to the right. * star = The text annotation marks content as especially important. * upArrow = The text annotation is concerning the content at the top. * upLeftArrow = The text annotation is concerning the content at the top left. * unnamed = The text annotation shall not provide a predefined name.- Returns:
- icon
-
setIcon
public void setIcon(OperationTextAnnotation.IconEnum icon)
-
initialOpen
public OperationTextAnnotation initialOpen(Boolean initialOpen)
-
getInitialOpen
@Nullable public @Nullable Boolean getInitialOpen()
If this value is set to \"true,\" the popup for the corresponding \"note\" annotation will be opened as soon as the corresponding document page is viewed.- Returns:
- initialOpen
-
setInitialOpen
public void setInitialOpen(Boolean initialOpen)
-
intents
public OperationTextAnnotation intents(String intents)
-
getIntents
@Nullable public @Nullable String getIntents()
Used to set the intention of the annotation. **Important:** The intention of an annotation can directly influence it's behaviour and may serve different purposes for different annotation types. Only set this directly, if you know it is necessary and possible to do so.- Returns:
- intents
-
setIntents
public void setIntents(String intents)
-
invisible
public OperationTextAnnotation 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)
-
locked
public OperationTextAnnotation 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)
-
name
public OperationTextAnnotation name(String name)
-
getName
@Nullable public @Nullable String getName()
Used to specify the name of the annotation.- Returns:
- name
-
setName
public void setName(String name)
-
normalAppearance
public OperationTextAnnotation normalAppearance(OperationAppearanceSource normalAppearance)
-
getNormalAppearance
@Nullable public @Nullable OperationAppearanceSource getNormalAppearance()
Get normalAppearance- Returns:
- normalAppearance
-
setNormalAppearance
public void setNormalAppearance(OperationAppearanceSource normalAppearance)
-
opacity
public OperationTextAnnotation opacity(Integer opacity)
-
getOpacity
@Nullable public @Nullable Integer getOpacity()
This percentage value is used to set the annotation's transparency. minimum: 0 maximum: 100- Returns:
- opacity
-
setOpacity
public void setOpacity(Integer opacity)
-
page
public OperationTextAnnotation page(Integer page)
-
getPage
@Nullable public @Nullable Integer getPage()
Set the number of the page, the annotation shall be placed on. minimum: 1- Returns:
- page
-
setPage
public void setPage(Integer page)
-
position
public OperationTextAnnotation position(OperationRectangle position)
-
getPosition
@Nullable public @Nullable OperationRectangle getPosition()
Get position- Returns:
- position
-
setPosition
public void setPosition(OperationRectangle position)
-
printable
public OperationTextAnnotation 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 OperationTextAnnotation 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)
-
subject
public OperationTextAnnotation subject(String subject)
-
getSubject
@Nullable public @Nullable String getSubject()
Used to specify the subject of the annotation.- Returns:
- subject
-
setSubject
public void setSubject(String subject)
-
viewable
public OperationTextAnnotation 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 OperationTextAnnotation 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 OperationTextAnnotation 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)
-
-