Class PDNamedDestination
java.lang.Object
org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDDestination
org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDNamedDestination
- All Implemented Interfaces:
COSObjectable
,PDDestinationOrAction
This represents a destination to a page by referencing it with a name.
- Version:
- $Revision: 1.3 $
- Author:
- Ben Litchfield
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.PDNamedDestination
(String dest) Default constructor.PDNamedDestination
(COSName dest) Constructor.PDNamedDestination
(COSString dest) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionConvert this standard java object to a COS object.This will get the name of the destination.void
setNamedDestination
(String dest) Set the named destination.Methods inherited from class org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDDestination
create, toString
-
Constructor Details
-
PDNamedDestination
Constructor.- Parameters:
dest
- The named destination.
-
PDNamedDestination
Constructor.- Parameters:
dest
- The named destination.
-
PDNamedDestination
public PDNamedDestination()Default constructor. -
PDNamedDestination
Default constructor.- Parameters:
dest
- The named destination.
-
-
Method Details
-
getCOSObject
Convert this standard java object to a COS object.- Returns:
- The cos object that matches this Java object.
-
getNamedDestination
This will get the name of the destination.- Returns:
- The name of the destination.
-
setNamedDestination
Set the named destination.- Parameters:
dest
- The new named destination.- Throws:
IOException
- If there is an error setting the named destination.
-