Method from org.apache.pdfbox.pdmodel.interactive.action.type.PDActionURI Detail: |
public String getBase() {
return action.getString( "Base" );
} Deprecated! use - PDURIDictionary#getBase() instead
This will get the base URI to be used in resolving relative URI references.
URI actions within the document may specify URIs in partial form, to be interpreted
relative to this base address. If no base URI is specified, such partial URIs
will be interpreted relative to the location of the document itself.
The use of this entry is parallel to that of the body element <BASE>, as described
in the HTML 4.01 Specification. |
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 String getS() {
return action.getNameAsString( "S" );
}
This will get the type of action that the actions dictionary describes.
It must be URI for a URI action. |
public String getURI() {
return action.getString( "URI" );
}
This will get the uniform resource identifier to resolve, encoded in 7-bit ASCII. |
public void setBase(String base) {
action.setString( "Base", base );
} Deprecated! use - PDURIDictionary#setBase(String) instead
This will set the base URI to be used in resolving relative URI references.
URI actions within the document may specify URIs in partial form, to be interpreted
relative to this base address. If no base URI is specified, such partial URIs
will be interpreted relative to the location of the document itself.
The use of this entry is parallel to that of the body element <BASE>, as described
in the HTML 4.01 Specification. |
public void setS(String s) {
action.setName( "S", s );
}
This will set the type of action that the actions dictionary describes.
It must be URI for a URI action. |
public void setTrackMousePosition(boolean value) {
this.action.setBoolean("IsMap", value);
}
This will specify whether to track the mouse position when the URI is resolved. |
public void setURI(String uri) {
action.setString( "URI", uri );
}
This will set the uniform resource identifier to resolve, encoded in 7-bit ASCII. |
public boolean shouldTrackMousePosition() {
return this.action.getBoolean("IsMap", false);
}
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. |