public class LinkContext extends Object
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
|
LinkContext |
scanForIds(com.itextpdf.styledxmlparser.node.INode root)
Scan the DOM tree for all (internal) link targets
|
public LinkContext scanForIds(com.itextpdf.styledxmlparser.node.INode root)
root - the DOM tree root nodepublic 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–2024 Apryse Group NV. All rights reserved.