Method from org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationText Detail: |
public String getName() {
return getDictionary().getNameAsString( COSName.NAME, NAME_NOTE );
}
This will retrieve the name (and hence appearance, AP taking precedence)
For this annotation. The default is NOTE. |
public boolean getOpen() {
return getDictionary().getBoolean( COSName.getPDFName( "Open" ), false );
}
This will retrieve the initial state of the annotation, open Or closed
(default closed). |
public String getState() {
return this.getDictionary().getString("State");
}
This will retrieve the annotation state. |
public String getStateModel() {
return this.getDictionary().getString("StateModel");
}
This will retrieve the annotation state model. |
public void setName(String name) {
getDictionary().setName( COSName.NAME, name );
}
This will set the name (and hence appearance, AP taking precedence) For
this annotation. See the NAME_XXX constants for valid values. |
public void setOpen(boolean open) {
getDictionary().setBoolean( COSName.getPDFName( "Open" ), open );
}
This will set initial state of the annotation, open or closed. |
public void setState(String state) {
this.getDictionary().setString("State", state);
}
This will set the annotation state. |
public void setStateModel(String stateModel) {
this.getDictionary().setString("StateModel", stateModel);
}
This will set the annotation state model.
Allowed values are "Marked" and "Review" |