public class RubberStamp extends Markup
RubberStamp
represents the stamp annotation.
It offers specific properties get/set method for stamp annotation.
Before call all methods in this class,
please note to call
at first.PDFPage.loadAnnots()
Annot.Border, Annot.QuadpointsF
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ICONNAME_APPROVED
Stamp annotation icon type: Approved.
|
static java.lang.String |
ICONNAME_ASIS
Stamp annotation icon type: AsIs.
|
static java.lang.String |
ICONNAME_CONFIDENTIAL
Stamp annotation icon type: Confidential.
|
static java.lang.String |
ICONNAME_DEPARTMENTAL
Stamp annotation icon type: Departmental.
|
static java.lang.String |
ICONNAME_DRAFT
Stamp annotation icon type: Draft.
|
static java.lang.String |
ICONNAME_EXPERIMENTAL
Stamp annotation icon type: Experimental.
|
static java.lang.String |
ICONNAME_EXPIRED
Stamp annotation icon type: Expired.
|
static java.lang.String |
ICONNAME_FINAL
Stamp annotation icon type: Final.
|
static java.lang.String |
ICONNAME_FORCOMMENT
Stamp annotation icon type: ForComment.
|
static java.lang.String |
ICONNAME_FORPUBLICRELEASE
Stamp annotation icon type: ForPublicRelease.
|
static java.lang.String |
ICONNAME_NOTAPPROVED
Stamp annotation icon type: NotApproved.
|
static java.lang.String |
ICONNAME_NOTFORPUBLICRELEASE
Stamp annotation icon type: NotForPublicRelease.
|
static java.lang.String |
ICONNAME_SOLD
Stamp annotation icon type: Sold.
|
static java.lang.String |
ICONNAME_TOPSECRET
Stamp annotation icon type: TopSecret.
|
INTENTNAME_FREETEXT_CALLOUT, INTENTNAME_FREETEXT_TYPEWRITER, INTENTNAME_LINE_ARROW, INTENTNAME_LINE_DIMENSION, INTENTNAME_POLYGON_CLOUD, INTENTNAME_POLYGON_DIMENSION, INTENTNAME_POLYLINE_DIMENSION, LINEENDINGSTYLE_BUTT, LINEENDINGSTYLE_CIRCLE, LINEENDINGSTYLE_CLOSEDARROW, LINEENDINGSTYLE_DIAMOND, LINEENDINGSTYLE_NONE, LINEENDINGSTYLE_OPENARROW, LINEENDINGSTYLE_REVERSECLOSEDARROW, LINEENDINGSTYLE_REVERSEOPENARROW, LINEENDINGSTYLE_SLASH, LINEENDINGSTYLE_SQUARE, STATE_MARKED_MARKED, STATE_MARKED_UNMARKED, STATE_REVIEW_ACCEPTED, STATE_REVIEW_CANCELLED, STATE_REVIEW_COMPLETED, STATE_REVIEW_NONE, STATE_REVIEW_REJECTED, STATEMODEL_MARKED, STATEMODEL_REVIEW
BORDERSTYLE_BEVELED, BORDERSTYLE_CLOUDY, BORDERSTYLE_DASHED, BORDERSTYLE_INSET, BORDERSTYLE_SOLID, BORDERSTYLE_UNDERLINE, FLAG_HIDDEN, FLAG_INVISIBLE, FLAG_LOCKED, FLAG_LOCKEDCONTENTS, FLAG_NOROTATE, FLAG_NOVIEW, FLAG_NOZOOM, FLAG_PRINT, FLAG_READONLY, FLAG_TOGGLENOVIEW, HIGHLIGHTINGMODE_INVERT, HIGHLIGHTINGMODE_NONE, HIGHLIGHTINGMODE_OUTLINE, HIGHLIGHTINGMODE_PUSH, HIGHLIGHTINGMODE_TOGGLE, MKENTRY_BACKGROUNDCOLOR, MKENTRY_BORDERCOLOR, MKENTRY_DOWNCAPTION, MKENTRY_DOWNICON, MKENTRY_ICONFIT, MKENTRY_NORMALCAPTION, MKENTRY_NORMALICON, MKENTRY_ROLLOVERCAPTION, MKENTRY_ROLLOVERICON, MKENTRY_ROTATION, MKENTRY_TEXTPOSITION, TRIGGER_ANNOT_CE, TRIGGER_ANNOT_CX, TRIGGER_ANNOT_FL, TRIGGER_ANNOT_FO, TRIGGER_ANNOT_MD, TRIGGER_ANNOT_MU, TRIGGER_ANNOT_PC, TRIGGER_ANNOT_PI, TRIGGER_ANNOT_PO, TRIGGER_ANNOT_PV, TYPE_3D, TYPE_CARET, TYPE_CIRCLE, TYPE_FILEATTACHMENT, TYPE_FREETEXT, TYPE_HIGHLIGHT, TYPE_INK, TYPE_LINE, TYPE_LINK, TYPE_MOVIE, TYPE_POLYGON, TYPE_POLYLINE, TYPE_POPUP, TYPE_PRINTERMARK, TYPE_PSI, TYPE_SCREEN, TYPE_SOUND, TYPE_SQUARE, TYPE_SQUIGGLY, TYPE_STAMP, TYPE_STRIKEOUT, TYPE_TEXT, TYPE_TRAPNET, TYPE_UNDERLINE, TYPE_WATERMARK, TYPE_WIDGET
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getIconName()
Get icon name of current stamp annotation.
|
void |
resetAppearance()
Reset(regenerate) appearance of current stamp annotation.
|
void |
setIconName(java.lang.String iconName)
Set icon name of current stamp annotation.
|
void |
setImage(Image image,
int compress)
Set image to current stamp annotation.
|
addState, countReplies, countStateAnnots, getCreationDateTime, getGroupElements, getGroupHeader, getIntent, getOpacity, getReply, getState, getStateAnnot, getSubject, getTitle, insertReply, isGrouped, isTextMarkup, removeAllReplies, removeAllStates, removeReply, setCreationDateTime, setGroup, setIntent, setOpacity, setState, setSubject, setTitle, unGroup
getBorder, getBorderColor, getContents, getDeviceRect, getFlags, getHandle, getIndex, getModifiedDateTime, getName, getRect, getType, isMarkup, move, setBorder, setBorderColor, setContents, setFlags, setIconProvider, setModifiedDateTime, setName
public static final java.lang.String ICONNAME_APPROVED
public static final java.lang.String ICONNAME_ASIS
public static final java.lang.String ICONNAME_CONFIDENTIAL
public static final java.lang.String ICONNAME_DEPARTMENTAL
public static final java.lang.String ICONNAME_DRAFT
public static final java.lang.String ICONNAME_EXPERIMENTAL
public static final java.lang.String ICONNAME_EXPIRED
public static final java.lang.String ICONNAME_FINAL
public static final java.lang.String ICONNAME_FORCOMMENT
public static final java.lang.String ICONNAME_FORPUBLICRELEASE
public static final java.lang.String ICONNAME_NOTAPPROVED
public static final java.lang.String ICONNAME_NOTFORPUBLICRELEASE
public static final java.lang.String ICONNAME_SOLD
public static final java.lang.String ICONNAME_TOPSECRET
public java.lang.String getIconName() throws PDFException
String
object that receives the icon name of current
stamp annotation. Please refer to constants definitions
ICONNAME_XXX
and this should be one of these constants.null
.PDFException
- For more exception information please see definitions
PDFException.ERRCODE_XXX
.PDFException
public void setIconName(java.lang.String iconName) throws PDFException
For stamp annotation, Foxit PDF SDK doesn't define default icon
appearance currently. So if application set icon name of stamp
annotation, application should ensure to implement a
AnnotIconProvider
for stamp annotation and set it to Foxit
PDF SDK by function
.Annot.setIconProvider(AnnotIconProvider)
iconName
- A String
object that specifies value of icon name
property. Please refer to constants definitions
ICONNAME_XXX
and
this should be one of these constants.PDFException
- For more exception information please see definitions
PDFException.ERRCODE_XXX
.PDFException
public void setImage(Image image, int compress) throws PDFException
image
- An Image
object which is an image object to be set
to current stamp annotation.resetAppearance()
has been called
for this stamp annotation. And application should call
function Image.release()
to release this Image
object.compress
- An integer
value that decides which compress
algorithm type is to be used to compress image data.PDFException
- For more exception information please see definitions
PDFException.ERRCODE_XXX
.PDFException
,
Image
public void resetAppearance() throws PDFException
PDFException
- For more exception information please see definitions
PDFException.ERRCODE_XXX
.PDFException