Public Member Functions | |
EmbeddedGotoTarget (PDFDoc document) | |
Constructor, with PDF document. More... | |
EmbeddedGotoTarget (PDFDoc document, PDFDictionary target_object) | |
Constructor, with PDF dictionary. More... | |
EmbeddedGotoTarget (EmbeddedGotoTarget action) | |
Constructor, with another EmbeddedGotoTarget object. More... | |
String | getAttachedFileName () throws com.foxit.sdk.PDFException |
Get the embedded file name, which is used in "EmbeddedFile" name tree of current target file. More... | |
PDFDictionary | getDict () throws com.foxit.sdk.PDFException |
Get PDF dictionary of current object. More... | |
int | getFileAttachmentAnnotIndex () throws com.foxit.sdk.PDFException |
Get the annotation index which specifies a file attachment annotation in a specified page. More... | |
int | getPageIndex () throws com.foxit.sdk.PDFException |
Get the page index which specifies the page that contains the target file attachment annotation. More... | |
String | getRelationship () throws com.foxit.sdk.PDFException |
Get relationship between current target object and the object that current target object belongs to. More... | |
EmbeddedGotoTarget | getTarget () throws com.foxit.sdk.PDFException |
Get the target which specifies additional path information to the target document. More... | |
boolean | isEmpty () |
Check whether current object is empty or not. More... | |
void | setAttachedFileName (String embed_file_name) throws com.foxit.sdk.PDFException |
Set the embedded file name, which is used in "EmbeddedFile" name tree of current target file. More... | |
void | setFileAttachmentAnnotIndex (int annot_index) throws com.foxit.sdk.PDFException |
Set the annotation index which specifies a file attachment annotation in a specified page. More... | |
void | setPageIndex (int page_index) throws com.foxit.sdk.PDFException |
Set the page index which specifies the page that contains the target file attachment annotation. More... | |
void | setRelationship (String relationship) throws com.foxit.sdk.PDFException |
Set relationship between current target object and the object that current target object belongs to. More... | |
void | setTarget (EmbeddedGotoTarget target) throws com.foxit.sdk.PDFException |
Set the target which specifies additional path information to the target document. More... | |
The target of an embedded go-to action is the document in which the destination lives.
com.foxit.sdk.pdf.actions.EmbeddedGotoTarget.EmbeddedGotoTarget | ( | PDFDoc | document | ) |
Constructor, with PDF document.
This constructor is to construct a new EmbeddedGotoTarget object (without any data).
document | A valid PDF document object. |
com.foxit.sdk.pdf.actions.EmbeddedGotoTarget.EmbeddedGotoTarget | ( | PDFDoc | document, |
PDFDictionary | target_object | ||
) |
Constructor, with PDF dictionary.
document | A valid PDF document object. |
target_object | A PDF dictionary that represents the embedded goto target data. |
com.foxit.sdk.pdf.actions.EmbeddedGotoTarget.EmbeddedGotoTarget | ( | EmbeddedGotoTarget | action | ) |
Constructor, with another EmbeddedGotoTarget object.
action | Another EmbeddedGotoTarget object. |
String com.foxit.sdk.pdf.actions.EmbeddedGotoTarget.getAttachedFileName | ( | ) | throws com.foxit.sdk.PDFException |
Get the embedded file name, which is used in "EmbeddedFile" name tree of current target file.
This is useful only when relationship is "C". If this property is a valid string, that means the target file is an embedded file defined in "EmbeddedFiles" name tree.
PDFDictionary com.foxit.sdk.pdf.actions.EmbeddedGotoTarget.getDict | ( | ) | throws com.foxit.sdk.PDFException |
Get PDF dictionary of current object.
int com.foxit.sdk.pdf.actions.EmbeddedGotoTarget.getFileAttachmentAnnotIndex | ( | ) | throws com.foxit.sdk.PDFException |
Get the annotation index which specifies a file attachment annotation in a specified page.
This is useful only when relationship is "C". If this property exists, that means the target file is related to a file attachment annotation, and this property just specifies the file attachment annotation in the specified page. Function EmbeddedGotoTarget::getPageIndex can be used to get the page index specifying the page that contains the target file attachment annotation.
int com.foxit.sdk.pdf.actions.EmbeddedGotoTarget.getPageIndex | ( | ) | throws com.foxit.sdk.PDFException |
Get the page index which specifies the page that contains the target file attachment annotation.
This is useful only when relationship is "C". If this property exists, that means the target file is related to a file attachment annotation. And this property just specifies the page which contains the file attachment annotation. Function EmbeddedGotoTarget::getFileAttachmentAnnotIndex can be used to get the annotation index of the target file attachment annotation.
String com.foxit.sdk.pdf.actions.EmbeddedGotoTarget.getRelationship | ( | ) | throws com.foxit.sdk.PDFException |
Get relationship between current target object and the object that current target object belongs to.
The relationship is the relationship between current target object and the object that current target object belongs to. Currently, the relationship could be one of following:
"P": current target object is the parent of the object that current target object belongs to.
"C": current target object is the child of the object that current target object belongs to.
EmbeddedGotoTarget com.foxit.sdk.pdf.actions.EmbeddedGotoTarget.getTarget | ( | ) | throws com.foxit.sdk.PDFException |
Get the target which specifies additional path information to the target document.
boolean com.foxit.sdk.pdf.actions.EmbeddedGotoTarget.isEmpty | ( | ) |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
void com.foxit.sdk.pdf.actions.EmbeddedGotoTarget.setAttachedFileName | ( | String | embed_file_name | ) | throws com.foxit.sdk.PDFException |
Set the embedded file name, which is used in "EmbeddedFile" name tree of current target file.
This is useful only when relationship is "C". If this property exists, that means the target file is an embedded file defined in "EmbeddedFiles" name tree.
embed_file_name | Name for embedded file. |
void com.foxit.sdk.pdf.actions.EmbeddedGotoTarget.setFileAttachmentAnnotIndex | ( | int | annot_index | ) | throws com.foxit.sdk.PDFException |
Set the annotation index which specifies a file attachment annotation in a specified page.
This is useful only when relationship is "C". If this property exists, that means the target file is related to a file attachment annotation, and this property just specifies the file attachment annotation in the specified page. Function EmbeddedGotoTarget::setPageIndex can be used to set the page index specifying the page that contains the target file attachment annotation.
annot_index | Annotation index to specify the file attachment annotation. Valid range: from 0 to (count-1). count means the annotation count in that specified page. |
void com.foxit.sdk.pdf.actions.EmbeddedGotoTarget.setPageIndex | ( | int | page_index | ) | throws com.foxit.sdk.PDFException |
Set the page index which specifies the page that contains the target file attachment annotation.
This is useful only when relationship is "C". If this property exists, that means the target file is related to a file attachment annotation, and this property just specifies the page which contains the file attachment annotation. Function EmbeddedGotoTarget::setFileAttachmentAnnotIndex can be used to set the annotation index of the target file attachment annotation.
page_index | Page index to specify a page which contains the target file attachment annotation. Valid range: from 0 to (count-1). count means the page count of current target PDF file. |
void com.foxit.sdk.pdf.actions.EmbeddedGotoTarget.setRelationship | ( | String | relationship | ) | throws com.foxit.sdk.PDFException |
Set relationship between current target object and the object that current target object belongs to.
The relationship is the relationship between current target object and the object that current target object belongs to. Currently, the relationship could be one of following:
"P": current target object is the parent of the object that current target object belongs to.
"C": current target object is the child of the object that current target object belongs to.
relationship | It should be one of following strings:"P", "C". |
void com.foxit.sdk.pdf.actions.EmbeddedGotoTarget.setTarget | ( | EmbeddedGotoTarget | target | ) | throws com.foxit.sdk.PDFException |
Set the target which specifies additional path information to the target document.
target | A EmbeddedGotoTarget object. If the return value of function EmbeddedGotoTarget::isEmpty for the returned EmbeddedGotoTarget object is true, that means current target object represents the final target file. |