public class RubberStamp extends Markup
Annot.BorderStyle
Modifier and Type | Field and Description |
---|---|
static int |
e_Approved
This integer list represents the Icon type of the RubberStamp annotation
e_Approved - a stamp with the text "Approved"
e_Experimental - a stamp with the text "Experimental"
e_NotApproved - a stamp with the text "NotApproved"
e_AsIs, - a stamp with the text "AsIs"
e_Expired - a stamp with the text "Expired"
e_NotForPublicRelease - a stamp with the text "NotForPublicRelease"
e_Confidential - a stamp with the text "Confidential"
e_Final - a stamp with the text "Final"
e_Sold - a stamp with the text "Sold"
e_Departmental - a stamp with the text "Departmental"
e_ForComment - a stamp with the text "ForComment"
e_TopSecret - a stamp with the text "TopScret"
e_ForPublicRelease - a stamp with the text "ForPublicRelease"
e_Draft - a stamp with the text "Draft"
e_Unknown - User defined or invalid.
|
static int |
e_AsIs
The Constant e_AsIs.
|
static int |
e_Confidential
The Constant e_Confidential.
|
static int |
e_Departmental
The Constant e_Departmental.
|
static int |
e_Draft
The Constant e_Draft.
|
static int |
e_Experimental
The Constant e_Experimental.
|
static int |
e_Expired
The Constant e_Expired.
|
static int |
e_Final
The Constant e_Final.
|
static int |
e_ForComment
The Constant e_ForComment.
|
static int |
e_ForPublicRelease
The Constant e_ForPublicRelease.
|
static int |
e_NotApproved
The Constant e_NotApproved.
|
static int |
e_NotForPublicRelease
The Constant e_NotForPublicRelease.
|
static int |
e_Sold
The Constant e_Sold.
|
static int |
e_TopSecret
The Constant e_TopSecret.
|
static int |
e_Unknown
The Constant e_Unknown.
|
e_3D, e_action_trigger_activate, e_action_trigger_annot_blur, e_action_trigger_annot_down, e_action_trigger_annot_enter, e_action_trigger_annot_exit, e_action_trigger_annot_focus, e_action_trigger_annot_page_close, e_action_trigger_annot_page_invisible, e_action_trigger_annot_page_open, e_action_trigger_annot_page_visible, e_action_trigger_annot_up, e_Caret, e_Circle, e_down, e_FileAttachment, e_FreeText, e_hidden, e_Highlight, e_Ink, e_invisible, e_Line, e_Link, e_locked, e_locked_contents, e_Movie, e_no_rotate, e_no_view, e_no_zoom, e_normal, e_Polygon, e_Polyline, e_Popup, e_print, e_PrinterMark, e_Projection, e_read_only, e_Redact, e_RichMedia, e_rollover, e_Screen, e_Sound, e_Square, e_Squiggly, e_Stamp, e_StrikeOut, e_Text, e_toggle_no_view, e_TrapNet, e_Underline, e_Watermark, e_Widget
Constructor and Description |
---|
RubberStamp()
Creates an empty RubberStamp annotation.
|
RubberStamp(Annot annot)
Creates a RubberStamp annotation and initialize it using given annotation object.
|
RubberStamp(Obj d)
Creates a RubberStamp annotation and initialize it using given Cos/SDF object.
|
Modifier and Type | Method and Description |
---|---|
static RubberStamp |
create(Doc doc,
Rect pos)
Creates a new RubberStamp annotation, in the specified document.
|
int |
getIcon()
Get the Icon type as an entry of the enum "Icon".
|
java.lang.String |
getIconName()
Get the Icon type as a string.
|
void |
SetIcon(int type)
Set the Icon type as an entry of the enum "Icon".
|
void |
setIcon(java.lang.String icon)
Set the Icon type as a string.
|
getBorderEffect, getBorderEffectIntensity, getContentRect, getCreationDates, getInteriorColor, getInteriorColorCompNum, getOpacity, getPadding, getPopup, getSubject, getTitle, setBorderEffect, SetBorderEffectIntensity, setContentRect, setCreationDates, setInteriorColor, setOpacity, SetPadding, setPopup, setSubject, setTitle
__Create, __GetHandle, __GetRefHandle, create, equals, flatten, getActiveAppearanceState, getAppearance, getAppearance, getAppearance, getBorderStyle, getColorAsCMYK, getColorAsGray, getColorAsRGB, getColorCompNum, getContents, getDate, getFlag, getOptionalContent, getPage, getRect, getRotation, getSDFObj, GetStructParent, getTriggerAction, getType, getUniqueID, getVisibleContentBox, isMarkup, isValid, refreshAppearance, removeAppearance, resize, setActiveAppearanceState, setAppearance, setAppearance, setAppearance, setBorderStyle, setColor, setContents, setDate, setFlag, setOptionalContent, setPage, setRect, setRotation, setStructParent, setUniqueID
public static final int e_Approved
public static final int e_Experimental
public static final int e_NotApproved
public static final int e_AsIs
public static final int e_Expired
public static final int e_NotForPublicRelease
public static final int e_Confidential
public static final int e_Final
public static final int e_Sold
public static final int e_Departmental
public static final int e_ForComment
public static final int e_TopSecret
public static final int e_ForPublicRelease
public static final int e_Draft
public static final int e_Unknown
public RubberStamp(Obj d)
Note: The constructor does not copy any data, but is instead the logical equivalent of a type cast.
d
- the input Cos/SDF objectpublic RubberStamp()
public RubberStamp(Annot annot) throws PDFNetException
Note: The constructor does not copy any data, but is instead the logical equivalent of a type cast.
annot
- the input annotation objectPDFNetException
public static RubberStamp create(Doc doc, Rect pos) throws PDFNetException
doc
- A document to which the annotation is added.pos
- A rectangle specifying the annotation's bounds, specified in
user space coordinates.PDFNetException
public int getIcon() throws PDFNetException
Note: the icon type represnets an icon that shall be used in displaying the annotation. There are predefined icon appearances for at the following standard names: e_Approved, e_Experimental, e_NotApproved, e_AsIs, e_Expired , e_NotForPublicRelease, e_Confidential, e_Final, e_Sold, e_Departmental, e_ForComment, e_TopSecret, e_Draft, e_ForPublicRelease Additional names may be supported as well. Default value: Draft. The annotation dictionary's Appearance(AP) entry, if present, shall take precedence over this Name entry.
PDFNetException
public void SetIcon(int type) throws PDFNetException
Note: the icon type represnets an icon that shall be used in displaying the annotation. There are predefined icon appearances for at the following standard names: e_Approved, e_Experimental, e_NotApproved, e_AsIs, e_Expired , e_NotForPublicRelease, e_Confidential, e_Final, e_Sold, e_Departmental, e_ForComment, e_TopSecret, e_Draft, e_ForPublicRelease Additional names may be supported as well. Default value: Draft. The annotation dictionary's Appearance(AP) entry, if present, shall take precedence over this Name entry.
type
- An entry of "Icon" that represents the type of icon
that is corresponding with this RubberStamp annotation.PDFNetException
public java.lang.String getIconName() throws PDFNetException
Note: the icon type represnets an icon that shall be used in displaying the annotation. There are predefined icon appearances for at the following standard names: Approved, Experimental, NotApproved, AsIs, Expired , NotForPublicRelease, Confidential, Final, Sold, Departmental, ForComment, TopSecret, Draft, ForPublicRelease. Additional names may be supported as well. Default value: Draft. The annotation dictionary's Appearance(AP) entry, if present, shall take precedence over this Name entry.
PDFNetException
public void setIcon(java.lang.String icon) throws PDFNetException
Note: the icon type represnets an icon that shall be used in displaying the annotation. There are predefined icon appearances for at the following standard names: Approved, Experimental, NotApproved, AsIs, Expired , NotForPublicRelease, Confidential, Final, Sold, Departmental, ForComment, TopSecret, Draft, ForPublicRelease Additional names may be supported as well. Default value: Draft. The annotation dictionary's Appearance(AP) entry, if present, shall take precedence over this Name entry.
icon
- A string representing icon type of the RubberStamp annotationPDFNetException