Package net.webpdf.wsclient.openapi
Class OperationRubberStampAnnotation
- java.lang.Object
-
- net.webpdf.wsclient.openapi.OperationRubberStampAnnotation
-
public class OperationRubberStampAnnotation extends Object
An annotation that either uses an custom image or text as a stamp, or that adds a prepared \"named\" stamp to the page.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOperationRubberStampAnnotation.AppearanceGenerationEnumDetermines for which named annotations appearance streams shall be generated.static classOperationRubberStampAnnotation.IconEnumThe known \"named\" icon types for rubberstamp annotations: * approved = A stamp that marks the stamped context as approved. * experimental = A stamp that marks the stamped content to be an experimental state. * notApproved = A stamp that disapproves the stamped context. * asIs = A stamp that marks the content as is. * expired = A stamp that marks the contained information as no longer valid. * notForPublicRelease = A stamp that marks something as information for internal use only. * confidential = A stamp marking the page as confidential. * final = A stamp that indicates, that the current state of the document is final. * sold = A stamp that indicates the marked contents to be sold and no longer available. * departmental = A stamp that forbids information to be shared to recipient outside of a given department. * forComment = Marks the stamped context as a comment. * topSecret = Marks the stamped content not to be shared publicly. * draft = A stamp marking the content to be a draft and therefore a work in progress. * forPublicRelease = Marks the content for public sharing. * unnamed = The rubberstamp shall not provide a predefined name.
-
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_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 OperationRubberStampAnnotation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationRubberStampAnnotationappearanceGeneration(OperationRubberStampAnnotation.AppearanceGenerationEnum appearanceGeneration)OperationRubberStampAnnotationcolor(String color)OperationRubberStampAnnotationcontents(String contents)OperationRubberStampAnnotationcreator(String creator)OperationRubberStampAnnotationcustomIconName(String customIconName)booleanequals(Object o)@Nullable OperationRubberStampAnnotation.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 OperationRubberStampAnnotation.IconEnumgetIcon()The known \"named\" icon types for rubberstamp annotations: * approved = A stamp that marks the stamped context as approved. * experimental = A stamp that marks the stamped content to be an experimental state. * notApproved = A stamp that disapproves the stamped context. * asIs = A stamp that marks the content as is. * expired = A stamp that marks the contained information as no longer valid. * notForPublicRelease = A stamp that marks something as information for internal use only. * confidential = A stamp marking the page as confidential. * final = A stamp that indicates, that the current state of the document is final. * sold = A stamp that indicates the marked contents to be sold and no longer available. * departmental = A stamp that forbids information to be shared to recipient outside of a given department. * forComment = Marks the stamped context as a comment. * topSecret = Marks the stamped content not to be shared publicly. * draft = A stamp marking the content to be a draft and therefore a work in progress. * forPublicRelease = Marks the content for public sharing. * unnamed = The rubberstamp shall not provide a predefined name.@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 OperationPositionRubberStampAnnotationgetPosition()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()OperationRubberStampAnnotationhidden(Boolean hidden)OperationRubberStampAnnotationicon(OperationRubberStampAnnotation.IconEnum icon)OperationRubberStampAnnotationintents(String intents)OperationRubberStampAnnotationinvisible(Boolean invisible)OperationRubberStampAnnotationlocked(Boolean locked)OperationRubberStampAnnotationname(String name)OperationRubberStampAnnotationnormalAppearance(OperationAppearanceSource normalAppearance)OperationRubberStampAnnotationopacity(Integer opacity)OperationRubberStampAnnotationpage(Integer page)OperationRubberStampAnnotationposition(OperationPositionRubberStampAnnotation position)OperationRubberStampAnnotationprintable(Boolean printable)OperationRubberStampAnnotationrotatable(Boolean rotatable)voidsetAppearanceGeneration(OperationRubberStampAnnotation.AppearanceGenerationEnum appearanceGeneration)voidsetColor(String color)voidsetContents(String contents)voidsetCreator(String creator)voidsetCustomIconName(String customIconName)voidsetHidden(Boolean hidden)voidsetIcon(OperationRubberStampAnnotation.IconEnum icon)voidsetIntents(String intents)voidsetInvisible(Boolean invisible)voidsetLocked(Boolean locked)voidsetName(String name)voidsetNormalAppearance(OperationAppearanceSource normalAppearance)voidsetOpacity(Integer opacity)voidsetPage(Integer page)voidsetPosition(OperationPositionRubberStampAnnotation position)voidsetPrintable(Boolean printable)voidsetRotatable(Boolean rotatable)voidsetSubject(String subject)voidsetViewable(Boolean viewable)voidsetWritable(Boolean writable)voidsetZoomable(Boolean zoomable)OperationRubberStampAnnotationsubject(String subject)StringtoString()OperationRubberStampAnnotationviewable(Boolean viewable)OperationRubberStampAnnotationwritable(Boolean writable)OperationRubberStampAnnotationzoomable(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_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 OperationRubberStampAnnotation appearanceGeneration(OperationRubberStampAnnotation.AppearanceGenerationEnum appearanceGeneration)
-
getAppearanceGeneration
@Nullable public @Nullable OperationRubberStampAnnotation.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(OperationRubberStampAnnotation.AppearanceGenerationEnum appearanceGeneration)
-
color
public OperationRubberStampAnnotation 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 OperationRubberStampAnnotation 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 OperationRubberStampAnnotation 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 OperationRubberStampAnnotation 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 OperationRubberStampAnnotation 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 OperationRubberStampAnnotation icon(OperationRubberStampAnnotation.IconEnum icon)
-
getIcon
@Nullable public @Nullable OperationRubberStampAnnotation.IconEnum getIcon()
The known \"named\" icon types for rubberstamp annotations: * approved = A stamp that marks the stamped context as approved. * experimental = A stamp that marks the stamped content to be an experimental state. * notApproved = A stamp that disapproves the stamped context. * asIs = A stamp that marks the content as is. * expired = A stamp that marks the contained information as no longer valid. * notForPublicRelease = A stamp that marks something as information for internal use only. * confidential = A stamp marking the page as confidential. * final = A stamp that indicates, that the current state of the document is final. * sold = A stamp that indicates the marked contents to be sold and no longer available. * departmental = A stamp that forbids information to be shared to recipient outside of a given department. * forComment = Marks the stamped context as a comment. * topSecret = Marks the stamped content not to be shared publicly. * draft = A stamp marking the content to be a draft and therefore a work in progress. * forPublicRelease = Marks the content for public sharing. * unnamed = The rubberstamp shall not provide a predefined name.- Returns:
- icon
-
setIcon
public void setIcon(OperationRubberStampAnnotation.IconEnum icon)
-
intents
public OperationRubberStampAnnotation 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 OperationRubberStampAnnotation 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 OperationRubberStampAnnotation 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 OperationRubberStampAnnotation 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 OperationRubberStampAnnotation normalAppearance(OperationAppearanceSource normalAppearance)
-
getNormalAppearance
@Nullable public @Nullable OperationAppearanceSource getNormalAppearance()
Get normalAppearance- Returns:
- normalAppearance
-
setNormalAppearance
public void setNormalAppearance(OperationAppearanceSource normalAppearance)
-
opacity
public OperationRubberStampAnnotation 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 OperationRubberStampAnnotation 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 OperationRubberStampAnnotation position(OperationPositionRubberStampAnnotation position)
-
getPosition
@Nullable public @Nullable OperationPositionRubberStampAnnotation getPosition()
Get position- Returns:
- position
-
setPosition
public void setPosition(OperationPositionRubberStampAnnotation position)
-
printable
public OperationRubberStampAnnotation 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 OperationRubberStampAnnotation 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 OperationRubberStampAnnotation 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 OperationRubberStampAnnotation 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 OperationRubberStampAnnotation 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 OperationRubberStampAnnotation 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)
-
-