Class PDActionURI
java.lang.Object
org.apache.pdfbox.pdmodel.interactive.action.PDAction
org.apache.pdfbox.pdmodel.interactive.action.PDActionURI
- All Implemented Interfaces:
COSObjectable,PDDestinationOrAction
This represents a URI action that can be executed in a PDF document.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetURI()This will get the uniform resource identifier to resolve.voidsetTrackMousePosition(boolean value) This will specify whether to track the mouse position when the URI is resolved.voidThis will set the uniform resource identifier to resolve, encoded in 7-bit ASCII.booleanThis will specify whether to track the mouse position when the URI is resolved.Methods inherited from class org.apache.pdfbox.pdmodel.interactive.action.PDAction
getCOSObject, getNext, getSubType, getType, setNext, setSubType, setType
-
Field Details
-
SUB_TYPE
This type of action this object represents.- See Also:
-
-
Constructor Details
-
PDActionURI
public PDActionURI()Default constructor. -
PDActionURI
Constructor.- Parameters:
a- The action dictionary.
-
-
Method Details
-
getURI
This will get the uniform resource identifier to resolve. It should be encoded in 7-bit ASCII, but UTF-8 and UTF-16 are supported too.- Returns:
- The URI entry of the specific URI action dictionary or null if there isn't any.
-
setURI
This will set the uniform resource identifier to resolve, encoded in 7-bit ASCII.- Parameters:
uri- The uniform resource identifier.
-
shouldTrackMousePosition
public boolean shouldTrackMousePosition()This will specify whether to track the mouse position when the URI is resolved. Default value: false. This entry applies only to actions triggered by the user's clicking an annotation; it is ignored for actions associated with outline items or with a document's OpenAction entry.- Returns:
- A flag specifying whether to track the mouse position when the URI is resolved.
-
setTrackMousePosition
public void setTrackMousePosition(boolean value) This will specify whether to track the mouse position when the URI is resolved.- Parameters:
value- The flag value.
-