public class Link extends Text
Text
which contains a link annotation dictionary
. The concept is largely similar to that of the HTML anchor tag.
Modifier and Type | Field and Description |
---|---|
protected PdfLinkAnnotation |
linkAnnotation
Deprecated.
|
role, tagProperties, text
childElements, nextRenderer, styles
properties
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 |
---|---|
PdfLinkAnnotation |
getLinkAnnotation()
Gets the link annotation dictionary associated with this link.
|
protected IRenderer |
makeNewRenderer() |
getAccessibilityProperties, getHorizontalScaling, getRole, getText, getTextRise, setHorizontalScaling, setRole, setSkew, setText, setTextRise
addStyle, createRendererSubTree, getChildren, getProperty, getRenderer, hasProperty, isEmpty, propagateArtifactRoleToChildElements, setAction, setNextRenderer, setPageNumber
deleteOwnProperty, getDefaultProperty, getHeight, getOwnProperty, getSplitCharacters, getStrokeColor, getStrokeWidth, getTextRenderingMode, getWidth, 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, setFontKerning, setFontScript, setFontSize, setHeight, setHeight, setHeightPercent, setHorizontalAlignment, setHyphenation, setItalic, setLineThrough, setOpacity, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setUnderline, setWidth, setWidth, setWidthPercent, setWordSpacing
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createRendererSubTree, getRenderer, setNextRenderer
deleteOwnProperty, getDefaultProperty, getOwnProperty, getProperty, hasOwnProperty, hasProperty, setProperty
@Deprecated protected PdfLinkAnnotation linkAnnotation
public 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
protected IRenderer makeNewRenderer()
makeNewRenderer
in class Text
Copyright © 1998–2018 iText Group NV. All rights reserved.