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, 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 |
|---|---|
PdfLinkAnnotation |
getLinkAnnotation()
Gets the link annotation dictionary associated with this link.
|
protected IRenderer |
makeNewRenderer() |
getAccessibilityProperties, getHorizontalScaling, getRole, getText, getTextRise, setHorizontalScaling, setRole, setSkew, setText, setTextRiseaddStyle, createRendererSubTree, getChildren, getProperty, getRenderer, hasProperty, isEmpty, propagateArtifactRoleToChildElements, setAction, setNextRenderer, setPageNumberdeleteOwnProperty, getDefaultProperty, getHeight, getOwnProperty, getSplitCharacters, getStrokeColor, getStrokeWidth, getTextRenderingMode, getWidth, hasOwnProperty, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBaseDirection, setBold, setBorder, setBorderBottom, setBorderLeft, setBorderRight, setBorderTop, setCharacterSpacing, setDestination, setFixedPosition, setFixedPosition, setFixedPosition, setFixedPosition, setFont, setFont, setFontColor, setFontColor, setFontKerning, setFontScript, setFontSize, setHeight, setHorizontalAlignment, setHyphenation, setItalic, setLineThrough, setOpacity, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setUnderline, setWidth, setWidth, setWidthPercent, setWordSpacingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateRendererSubTree, getRenderer, setNextRendererdeleteOwnProperty, 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–2017 iText Group NV. All rights reserved.