Module org.sejda.sambox
Interface WithActionOrDestination
- All Superinterfaces:
COSObjectable
- All Known Implementing Classes:
PDAnnotationLink,PDOutlineItem
- Author:
- Andrea Vacondio
-
Method Summary
Methods inherited from interface org.sejda.sambox.cos.COSObjectable
getCOSObject
-
Method Details
-
getDestination
- Returns:
- The destination to be displayed when the annotation is activated. Shall not be
present if an A entry is present
getAction() - Throws:
IOException- If there is an error creating the destination.
-
getAction
PDAction getAction()- Returns:
- The action that shall be performed when this item is activated
-
resolveToPageDestination
default Optional<PDPageDestination> resolveToPageDestination(PDDocumentCatalog catalog) throws IOException - Parameters:
catalog- Catalog used to possibly resolve named destinations- Returns:
- the PDPageDestination or an empty
Optionalif the destination cannot be resolved to aPDPageDestination. If necessary, It resolves GoTo action destinations and named destination to return the actual PDPageDestination - Throws:
IOException
-