Class PDPageAdditionalActions
java.lang.Object
org.apache.pdfbox.pdmodel.interactive.action.PDPageAdditionalActions
- All Implemented Interfaces:
COSObjectable
This class represents a page object's dictionary of actions
that occur due to events.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetC()
This will get an action to be performed when the page is closed.Convert this standard java object to a COS object.getO()
This will get an action to be performed when the page is opened.void
This will set an action to be performed when the page is closed.void
This will set an action to be performed when the page is opened.
-
Field Details
-
actions
-
-
Constructor Details
-
PDPageAdditionalActions
public PDPageAdditionalActions()Default constructor. -
PDPageAdditionalActions
Constructor.- Parameters:
a
- The action dictionary.
-
-
Method Details
-
getCOSObject
Convert this standard java object to a COS object.- Specified by:
getCOSObject
in interfaceCOSObjectable
- Returns:
- The cos object that matches this Java object.
-
getO
This will get an action to be performed when the page is opened. This action is independent of any that may be defined by the OpenAction entry in the document catalog, and is executed after such an action.- Returns:
- The O entry of page object's additional actions dictionary.
-
setO
This will set an action to be performed when the page is opened. This action is independent of any that may be defined by the OpenAction entry in the document catalog, and is executed after such an action.- Parameters:
o
- The action to be performed.
-
getC
This will get an action to be performed when the page is closed. This action applies to the page being closed, and is executed before any other page opened.- Returns:
- The C entry of page object's additional actions dictionary.
-
setC
This will set an action to be performed when the page is closed. This action applies to the page being closed, and is executed before any other page opened.- Parameters:
c
- The action to be performed.
-