| Modifier and Type | Field and Description |
|---|---|
| private final COSDictionary |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PDTargetDirectory(COSDictionary
The existing graphics state. dictionary)Create a target directory from an existing dictionary. |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the zero based page number or -1 if the /P entry value is missing or not a number.If the value in the /A entry is an integer, this will get the index (zero-based) of the annotation in the /Annots array of the page specified by the /P entry. |
| public String | Returns: the /NM value of an annotation dictionary or null if the /A entry value is missing or not a string.If the value in the /A entry is a string, this will get the value of the /NM entry in the annotation dictionary. |
| public COSDictionary | Returns: The underlying dictionary for this class.Implements org. This will get the underlying dictionary that this class acts on. |
| public String | Returns: a filename or null if there is none.Get the name of the file as found in the EmbeddedFiles name tree. |
| public PDNamedDestination | Returns: a named destination or null if the /P entry value is missing or not a string.If the value in the /P entry is a string, this will get a named destination in the current document that provides the page number of the file attachment annotation. |
| public int | Returns: the zero based page number or -1 if the /P entry value is missing or not a number.If the value in the /P entry is an integer, this will get the page number (zero-based) in the current document containing the file attachment annotation. |
| public COSName | Returns: the relationship as a name. Valid values are P (the target is the parent of the current document) and C (the target is a child of the current document). Invalid values or null are also returned.Get the relationship between the current document and the target (which may be an intermediate target). |
| public PDTargetDirectory | Returns: the target directory or null if the current document is the target file containing the destination.Get the target directory. |
| public void | setAnnotationIndex(int
the zero based index. If this is < 0 then the entry is removed. index)This will set the index (zero-based) of the annotation in the /Annots array of the page specified by the /P entry. |
| public void | setAnnotationName(String
the /NM value of an annotation dictionary or null if the entry is to be removed. name)This will get the value of the /NM entry in the annotation dictionary. |
| public void | setFilename(String
a filename or null if the entry is to be deleted. filename)Sets the name of the file as found in the EmbeddedFiles name tree. |
| public void | setNamedDestination(PDNamedDestination
a named destination or null if the entry is to be removed. dest)This will set a named destination in the current document that provides the page number of the file attachment annotation. |
| public void | setPageNumber(int
the zero based page number. If this is < 0 then the entry is removed. pageNumber)Set the page number (zero-based) in the current document containing the file attachment annotation. |
| public void | setRelationship(COSName
Valid values are P (the target is the parent of the current document) and
C (the target is a child of the current document).
throws IllegalArgumentException if the parameter is not P or C. relationship)Set the relationship between the current document and the target (which may be an intermediate target). |
| public void | setTargetDirectory(PDTargetDirectory
the target directory or null if the current document is the target
file containing the destination. targetDirectory)Sets the target directory. |
| dict | back to summary |
|---|---|
| private final COSDictionary dict | |
| PDTargetDirectory | back to summary |
|---|---|
| public PDTargetDirectory() Default constructor, creates target directory. | |
| PDTargetDirectory | back to summary |
|---|---|
| public PDTargetDirectory(COSDictionary dictionary) Create a target directory from an existing dictionary.
| |
| getAnnotationIndex | back to summary |
|---|---|
| public int getAnnotationIndex() If the value in the /A entry is an integer, this will get the index (zero-based) of the annotation in the /Annots array of the page specified by the /P entry.
| |
| getAnnotationName | back to summary |
|---|---|
| public String getAnnotationName() If the value in the /A entry is a string, this will get the value of the /NM entry in the annotation dictionary.
| |
| getCOSObject | back to summary |
|---|---|
| public COSDictionary getCOSObject() Implements org. This will get the underlying dictionary that this class acts on.
| |
| getFilename | back to summary |
|---|---|
| public String getFilename() Get the name of the file as found in the EmbeddedFiles name tree. This is only to be used if the target is a child of the current document.
| |
| getNamedDestination | back to summary |
|---|---|
| public PDNamedDestination getNamedDestination() If the value in the /P entry is a string, this will get a named destination in the current document that provides the page number of the file attachment annotation.
| |
| getPageNumber | back to summary |
|---|---|
| public int getPageNumber() If the value in the /P entry is an integer, this will get the page number (zero-based) in the current document containing the file attachment annotation.
| |
| getRelationship | back to summary |
|---|---|
| public COSName getRelationship() Get the relationship between the current document and the target (which may be an intermediate target).
| |
| getTargetDirectory | back to summary |
|---|---|
| public PDTargetDirectory getTargetDirectory() Get the target directory. If this entry is absent, the current document is the target file containing the destination.
| |
| setAnnotationIndex | back to summary |
|---|---|
| public void setAnnotationIndex(int index) This will set the index (zero-based) of the annotation in the /Annots array of the page specified by the /P entry.
| |
| setAnnotationName | back to summary |
|---|---|
| public void setAnnotationName(String name) This will get the value of the /NM entry in the annotation dictionary.
| |
| setFilename | back to summary |
|---|---|
| public void setFilename(String filename) Sets the name of the file as found in the EmbeddedFiles name tree. This is only to be used if the target is a child of the current document.
| |
| setNamedDestination | back to summary |
|---|---|
| public void setNamedDestination(PDNamedDestination dest) This will set a named destination in the current document that provides the page number of the file attachment annotation.
| |
| setPageNumber | back to summary |
|---|---|
| public void setPageNumber(int pageNumber) Set the page number (zero-based) in the current document containing the file attachment annotation.
| |
| setRelationship | back to summary |
|---|---|
| public void setRelationship(COSName relationship) Set the relationship between the current document and the target (which may be an intermediate target).
| |
| setTargetDirectory | back to summary |
|---|---|
| public void setTargetDirectory(PDTargetDirectory targetDirectory) Sets the target directory.
| |