Method from org.apache.pdfbox.pdmodel.interactive.action.type.PDActionRemoteGoTo Detail: |
public COSDictionary getCOSDictionary() {
return action;
}
Convert this standard java object to a COS object. |
public COSBase getCOSObject() {
return action;
}
Convert this standard java object to a COS object. |
public COSBase getD() {
return action.getDictionaryObject( "D" );
}
This will get the destination to jump to.
If the value is an array defining an explicit destination,
its first element must be a page number within the remote
document rather than an indirect reference to a page object
in the current document. The first page is numbered 0. |
public PDFileSpecification getFile() throws IOException {
return PDFileSpecification.createFS( action.getDictionaryObject( "F" ) );
}
This will get the file in which the destination is located. |
public String getS() {
return action.getNameAsString( "S" );
}
This will get the type of action that the actions dictionary describes.
It must be GoToR for a remote go-to action. |
public void setD(COSBase d) {
action.setItem( "D", d );
}
This will set the destination to jump to.
If the value is an array defining an explicit destination,
its first element must be a page number within the remote
document rather than an indirect reference to a page object
in the current document. The first page is numbered 0. |
public void setFile(PDFileSpecification fs) {
action.setItem( "F", fs );
}
This will set the file in which the destination is located. |
public void setOpenInNewWindow(boolean value) {
action.setBoolean( "NewWindow", value );
}
This will specify the destination document to open in a new window. |
public void setS(String s) {
action.setName( "S", s );
}
This will set the type of action that the actions dictionary describes.
It must be GoToR for a remote go-to action. |
public boolean shouldOpenInNewWindow() {
return action.getBoolean( "NewWindow", true );
}
This will specify whether to open the destination document in a new window.
If this flag is false, the destination document will replace the current
document in the same window. If this entry is absent, the viewer application
should behave in accordance with the current user preference. |