public class PdfLinkAnnotation extends PdfAnnotation
| Modifier and Type | Field and Description |
|---|---|
static PdfName |
Invert |
static PdfName |
None
Highlight modes.
|
static PdfName |
Outline |
static PdfName |
Push |
Accepted, Canceled, Completed, HIDDEN, HIGHLIGHT_INVERT, HIGHLIGHT_NONE, HIGHLIGHT_OUTLINE, HIGHLIGHT_PUSH, HIGHLIGHT_TOGGLE, INVISIBLE, LOCKED, LOCKED_CONTENTS, Marked, MarkedModel, NO_ROTATE, NO_VIEW, NO_ZOOM, page, PRINT, READ_ONLY, Rejected, ReviewModel, STYLE_BEVELED, STYLE_DASHED, STYLE_INSET, STYLE_SOLID, STYLE_UNDERLINE, TOGGLE_NO_VIEW, Unmarked| Constructor and Description |
|---|
PdfLinkAnnotation(PdfDictionary pdfObject)
Deprecated.
Use
PdfAnnotation.makeAnnotation(PdfObject) instead. Will be made protected in 7.1
|
PdfLinkAnnotation(Rectangle rect) |
| Modifier and Type | Method and Description |
|---|---|
PdfDictionary |
getAction()
An PdfAction to perform, such as launching an application, playing a sound, changing an annotation’s appearance state etc, when the annotation is activated.
|
PdfDictionary |
getBorderStyle()
BS entry specifies a border style dictionary that has more settings than the array specified for the Border entry (see PdfAnnotation.getBorder()).
|
PdfObject |
getDestinationObject() |
PdfName |
getHighlightMode() |
PdfArray |
getQuadPoints()
An array of 8 × n numbers specifying the coordinates of n quadrilaterals in default user space.
|
PdfName |
getSubtype()
Gets a PdfName which value is a subtype of this annotation.
|
PdfDictionary |
getUriActionObject() |
PdfLinkAnnotation |
removeAction() |
PdfLinkAnnotation |
removeDestination() |
PdfLinkAnnotation |
setAction(PdfAction action)
Sets a PdfAction to this annotation which will be performed when the annotation is activated.
|
PdfLinkAnnotation |
setAction(PdfDictionary action)
Sets a PdfDictionary representing action to this annotation which will be performed when the annotation is activated.
|
PdfLinkAnnotation |
setBorderStyle(PdfDictionary borderStyle)
Sets border style dictionary that has more settings than the array specified for the Border entry ( PdfAnnotation.getBorder()).
|
PdfLinkAnnotation |
setBorderStyle(PdfName style)
Setter for the annotation's preset border style.
|
PdfLinkAnnotation |
setDashPattern(PdfArray dashPattern)
Setter for the annotation's preset dashed border style.
|
PdfLinkAnnotation |
setDestination(PdfDestination destination) |
PdfLinkAnnotation |
setDestination(PdfObject destination) |
PdfLinkAnnotation |
setHighlightMode(PdfName hlMode) |
PdfLinkAnnotation |
setQuadPoints(PdfArray quadPoints)
Sets n quadrilaterals in default user space by passing an PdfArray of 8 × n numbers.
|
PdfLinkAnnotation |
setUriAction(PdfAction action) |
PdfLinkAnnotation |
setUriAction(PdfDictionary action) |
flush, getAdditionalAction, getAppearanceCharacteristics, getAppearanceDictionary, getAppearanceObject, getAppearanceState, getBorder, getColorObject, getContents, getDate, getDownAppearanceObject, getFlags, getName, getNormalAppearanceObject, getOpen, getPage, getPageObject, getRectangle, getRolloverAppearanceObject, getStructParentIndex, getTitle, hasFlag, isWrappedObjectMustBeIndirect, makeAnnotation, makeAnnotation, put, remove, resetFlag, setAdditionalAction, setAppearance, setAppearance, setAppearanceCharacteristics, setAppearanceState, setBorder, setColor, setColor, setColor, setContents, setContents, setDate, setDownAppearance, setDownAppearance, setFlag, setFlags, setLayer, setName, setNormalAppearance, setNormalAppearance, setOpen, setPage, setRectangle, setRolloverAppearance, setRolloverAppearance, setStructParentIndex, setTitleensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidReleasepublic static final PdfName None
public static final PdfName Invert
public static final PdfName Outline
public static final PdfName Push
@Deprecated public PdfLinkAnnotation(PdfDictionary pdfObject)
PdfAnnotation.makeAnnotation(PdfObject) instead. Will be made protected in 7.1
pdfObject - object representing this annotation
public PdfLinkAnnotation(Rectangle rect)
public PdfName getSubtype()
PdfAnnotation
PdfName which value is a subtype of this annotation. See ISO-320001 12.5.6, "Annotation Types" for the reference to the possible types.
getSubtype in class PdfAnnotation
public PdfObject getDestinationObject()
public PdfLinkAnnotation setDestination(PdfObject destination)
public PdfLinkAnnotation setDestination(PdfDestination destination)
public PdfLinkAnnotation removeDestination()
public PdfDictionary getAction()
PdfAction to perform, such as launching an application, playing a sound, changing an annotation’s appearance state etc, when the annotation is activated.
getAction in class PdfAnnotation
PdfDictionary which defines the characteristics and behaviour of an action.
public PdfLinkAnnotation setAction(PdfDictionary action)
PdfDictionary representing action to this annotation which will be performed when the annotation is activated.
action - PdfDictionary that represents action to set to this annotation.
PdfLinkAnnotation instance.
public PdfLinkAnnotation setAction(PdfAction action)
PdfAction to this annotation which will be performed when the annotation is activated.
setAction in class PdfAnnotation
action - PdfAction to set to this annotation.
PdfLinkAnnotation instance.
public PdfLinkAnnotation removeAction()
public PdfName getHighlightMode()
public PdfLinkAnnotation setHighlightMode(PdfName hlMode)
public PdfDictionary getUriActionObject()
public PdfLinkAnnotation setUriAction(PdfDictionary action)
public PdfLinkAnnotation setUriAction(PdfAction action)
public PdfArray getQuadPoints()
getQuadPoints in class PdfAnnotation
PdfArray of 8 × n numbers specifying the coordinates of n quadrilaterals.
public PdfLinkAnnotation setQuadPoints(PdfArray quadPoints)
PdfArray of 8 × n numbers. Quadrilaterals are used to define regions inside annotation rectangle in which the link annotation should be activated.
setQuadPoints in class PdfAnnotation
quadPoints - an PdfArray of 8 × n numbers specifying the coordinates of n quadrilaterals.
PdfLinkAnnotation instance.
public PdfDictionary getBorderStyle()
PdfAnnotation.getBorder()). If an annotation dictionary includes the BS entry, then the Border entry is ignored. If annotation includes AP (see PdfAnnotation.getAppearanceDictionary()) it takes precedence over the BS entry. For more info on BS entry see ISO-320001, Table 166.
getBorderStyle in class PdfAnnotation
PdfDictionary which is a border style dictionary or null if it is not specified.
public PdfLinkAnnotation setBorderStyle(PdfDictionary borderStyle)
PdfAnnotation.getBorder()). See ISO-320001, Table 166 and getBorderStyle() for more info.
setBorderStyle in class PdfAnnotation
borderStyle - a border style dictionary specifying the line width and dash pattern that shall be used in drawing the annotation’s border.
PdfLinkAnnotation instance.
public PdfLinkAnnotation setBorderStyle(PdfName style)
PdfAnnotation.STYLE_SOLID - A solid rectangle surrounding the annotation.PdfAnnotation.STYLE_DASHED - A dashed rectangle surrounding the annotation.PdfAnnotation.STYLE_BEVELED - A simulated embossed rectangle that appears to be raised above the surface of the page.PdfAnnotation.STYLE_INSET - A simulated engraved rectangle that appears to be recessed below the surface of the page.PdfAnnotation.STYLE_UNDERLINE - A single line along the bottom of the annotation rectangle.setBorderStyle in class PdfAnnotation
style - The new value for the annotation's border style.
PdfLinkAnnotation instance.
getBorderStyle()
public PdfLinkAnnotation setDashPattern(PdfArray dashPattern)
PdfAnnotation.STYLE_DASHED style was used for the annotation border style (see setBorderStyle(PdfName). See ISO-320001 8.4.3.6, “Line Dash Pattern” for the format in which dash pattern shall be specified.
setDashPattern in class PdfAnnotation
dashPattern - a dash array defining a pattern of dashes and gaps that shall be used in drawing a dashed border.
PdfLinkAnnotation instance.
Copyright © 1998–2018 iText Group NV. All rights reserved.