public class CPDFLinkAnnotation extends CPDFAnnotation
CPDFAnnotation.AppearanceType, CPDFAnnotation.Flags, CPDFAnnotation.Type
annotPtr, apRotation, pdfPage
Modifier and Type | Method and Description |
---|---|
void |
close()
When the object is no longer in use, call this method to release resources.
|
CPDFDestination |
getDestination(CPDFDocument document)
Gets link information of document.
|
CPDFAction |
getLinkAction()
Gets the response action of the link annotation.
|
RectF |
getRect()
Gets annotation rectangle.
|
boolean |
setDestination(CPDFDocument document,
CPDFDestination destination)
Sets link information of document.
|
boolean |
setLinkAction(CPDFAction action)
Sets the response action of the link annotation.
|
boolean |
setRect(RectF rect)
Sets annotation rectangle.
|
boolean |
updateAp()
Updates annotation appearance.
|
addToPage, clearFilledRGBColor, clearFilledTransparency, getAppearanceByPixel, getApRotation, getBgRGBColor, getBorderRGBColor, getBorderStyle, getBorderWidth, getContent, getCreationDate, getFilledRGBColor, getFilledTransparency, getFlags, getName, getOverLayText, getRecentlyModifyDate, getRGBColor, getTitle, getTransparency, getType, hasAp, isAllowCorrectAnnotationAp, isHidden, isLocked, isReadOnly, isValid, removeAp, removeFromPage, setAllowCorrectAnnotationAp, setBgRGBColor, setBorderRGBColor, setBorderStyle, setBorderWidth, setContent, setCreationDate, setFilledRGBColor, setFilledTransparency, setFlags, setHidden, setLocked, setName, setOverLayText, setReadOnly, setRecentlyModifyDate, setRGBColor, setTitle, setTransparency, updateApWithBitmap, updateApWithImage
public boolean setLinkAction(CPDFAction action)
CPDFAction.ActionType
The action type can be obtained throughCPDFAction.getActionType()
, more: CPDFAction
action
- Response action of the link annotation.public CPDFAction getLinkAction()
CPDFAction.ActionType
The action type can be obtained throughCPDFAction.getActionType()
, more: CPDFAction
CPDFAction
public CPDFDestination getDestination(CPDFDocument document)
document
- This class is about CPDFDocument, one CPDFDocument class for one document.CPDFDocument
,
CPDFDestination
public boolean setDestination(CPDFDocument document, CPDFDestination destination)
document
- This class is about CPDFDocument, one CPDFDocument class for one document.destination
- destination information.public boolean setRect(RectF rect)
setRect
in class CPDFAnnotation
rect
- Rectangle on the page.public RectF getRect()
getRect
in class CPDFAnnotation
public void close()
close
in class CPDFAnnotation
public boolean updateAp()
updateAp
in class CPDFAnnotation