public class Link extends Text
Text which contains a link annotation dictionary. The concept is largely similar to that of the HTML anchor tag.
tagProperties, textchildElements, nextRenderer, stylesproperties| Constructor and Description |
|---|
Link(String text, PdfAction action)
Creates a Link which can execute an action.
|
Link(String text, PdfDestination destination)
Creates a Link to another location in the document.
|
Link(String text, PdfLinkAnnotation linkAnnotation)
Creates a Link with a fully constructed link annotation dictionary.
|
| Modifier and Type | Method and Description |
|---|---|
AccessibilityProperties |
getAccessibilityProperties()
Gets the accessibility properties.
|
PdfLinkAnnotation |
getLinkAnnotation()
Gets the link annotation dictionary associated with this link.
|
protected IRenderer |
makeNewRenderer() |
getHorizontalScaling, getText, getTextRise, setHorizontalScaling, setSkew, setText, setTextRiseaddStyle, createRendererSubTree, getChildren, getProperty, getRenderer, hasProperty, isEmpty, setAction, setNextRenderer, setPageNumberdeleteOwnProperty, getDefaultProperty, getOwnProperty, getSplitCharacters, getStrokeColor, getStrokeWidth, getTextRenderingMode, hasOwnProperty, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBaseDirection, setBold, setBorder, setBorderBottom, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBorderTopLeftRadius, setBorderTopRightRadius, setCharacterSpacing, setDestination, setFixedPosition, setFixedPosition, setFixedPosition, setFixedPosition, setFont, setFont, setFontColor, setFontColor, setFontFamily, setFontFamily, setFontKerning, setFontScript, setFontSize, setHorizontalAlignment, setHyphenation, setItalic, setLineThrough, setOpacity, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setUnderline, setWordSpacingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateRendererSubTree, getRenderer, setNextRendererdeleteOwnProperty, getDefaultProperty, getOwnProperty, getProperty, hasOwnProperty, hasProperty, setPropertypublic Link(String text, PdfLinkAnnotation linkAnnotation)
text - the textual contents of the link
linkAnnotation - a PdfLinkAnnotation
public Link(String text, PdfAction action)
text - the textual contents of the link
action - a PdfAction
public Link(String text, PdfDestination destination)
text - the textual contents of the link
destination - a PdfDestination
public PdfLinkAnnotation getLinkAnnotation()
PdfLinkAnnotation
public AccessibilityProperties getAccessibilityProperties()
IAccessibleElement
accessibility properties. See also IAccessibleElement.
getAccessibilityProperties in interface IAccessibleElement
getAccessibilityProperties in class Text
protected IRenderer makeNewRenderer()
makeNewRenderer in class Text
Copyright © 1998–2019 iText Group NV. All rights reserved.