public class LinkContext extends Object implements IDocumentTreeJob
This class is not reusable and a new instance shall be created for every new conversion process.
| Constructor and Description |
|---|
LinkContext()
Construct an (empty) LinkContext
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLinkAnnotation(String id,
com.itextpdf.kernel.pdf.annot.PdfLinkAnnotation annot)
Add link annotation to the context.
|
com.itextpdf.kernel.pdf.annot.PdfLinkAnnotation |
getLinkAnnotation(String id)
Get link annotation.
|
boolean |
isUsedLinkDestination(String linkDestination)
Returns whether a given (internal) link destination is used by at least one href element in the document
|
void |
process(com.itextpdf.styledxmlparser.node.INode node,
int level)
Check if an element is a link.
|
LinkContext |
scanForIds(com.itextpdf.styledxmlparser.node.INode root)
Deprecated.
|
@Deprecated public LinkContext scanForIds(com.itextpdf.styledxmlparser.node.INode root)
process(INode, int)root - the DOM tree root nodepublic void process(com.itextpdf.styledxmlparser.node.INode node,
int level)
process in interface IDocumentTreeJobnode - the node to processlevel - the hierarchical level of the node in the document tree structurepublic boolean isUsedLinkDestination(String linkDestination)
linkDestination - link destinationpublic void addLinkAnnotation(String id, com.itextpdf.kernel.pdf.annot.PdfLinkAnnotation annot)
id - link destination.annot - link annotation to store.public com.itextpdf.kernel.pdf.annot.PdfLinkAnnotation getLinkAnnotation(String id)
id - link destination.Copyright © 1998–2026 Apryse Group NV. All rights reserved.