HyperlinkCollector
Inheritance: java.lang.Object
public class HyperlinkCollector
The class provides collecting hyperlinked XPS elements from the current page of an XPS document.
Methods
Method | Description |
---|---|
collectHyperlinks(XpsDocument document) | Collects XPS elements with hyperlinks of all types. |
Collects XPS elements with hyperlinks of a certain type. |
collectHyperlinks(XpsDocument document)
public static Collection<XpsHyperlinkElement> collectHyperlinks(XpsDocument document)
Collects XPS elements with hyperlinks of all types.
Parameters:
Parameter | Type | Description |
---|---|---|
document | XpsDocument | The XPS document. |
Returns: java.util.Collection<com.aspose.xps.XpsHyperlinkElement> - The collection containing hyperlinked XPS elements.
collectHyperlinks(XpsDocument document, Class cls)
public static Collection<XpsHyperlinkElement> <T>collectHyperlinks(XpsDocument document, Class<T> cls)
Collects XPS elements with hyperlinks of a certain type.
Parameters:
Parameter | Type | Description |
---|---|---|
document | XpsDocument | The XPS document. |
cls | java.lang.Class | The class object corresponding to the hyperlink target type to filter out. |
Returns: java.util.Collection<com.aspose.xps.XpsHyperlinkElement> - The collection containing hyperlinked XPS elements.