This class represents a document catalog's dictionary of actions
that occur due to events.
Method from org.apache.pdfbox.pdmodel.interactive.action.PDDocumentCatalogAdditionalActions Detail: |
public COSDictionary getCOSDictionary() {
return actions;
}
Convert this standard java object to a COS object. |
public COSBase getCOSObject() {
return actions;
}
Convert this standard java object to a COS object. |
public PDAction getDP() {
COSDictionary dp = (COSDictionary)actions.getDictionaryObject( "DP" );
PDAction retval = null;
if( dp != null )
{
retval = PDActionFactory.createAction( dp );
}
return retval;
}
This will get a JavaScript action to be performed
after printing a document.
The name DP stands for "did print". |
public PDAction getDS() {
COSDictionary ds = (COSDictionary)actions.getDictionaryObject( "DS" );
PDAction retval = null;
if( ds != null )
{
retval = PDActionFactory.createAction( ds );
}
return retval;
}
This will get a JavaScript action to be performed
after saving a document.
The name DS stands for "did save". |
public PDAction getWC() {
COSDictionary wc = (COSDictionary)actions.getDictionaryObject( "WC" );
PDAction retval = null;
if( wc != null )
{
retval = PDActionFactory.createAction( wc );
}
return retval;
}
This will get a JavaScript action to be performed
before closing a document.
The name WC stands for "will close". |
public PDAction getWP() {
COSDictionary wp = (COSDictionary)actions.getDictionaryObject( "WP" );
PDAction retval = null;
if( wp != null )
{
retval = PDActionFactory.createAction( wp );
}
return retval;
}
This will get a JavaScript action to be performed
before printing a document.
The name WP stands for "will print". |
public PDAction getWS() {
COSDictionary ws = (COSDictionary)actions.getDictionaryObject( "WS" );
PDAction retval = null;
if( ws != null )
{
retval = PDActionFactory.createAction( ws );
}
return retval;
}
This will get a JavaScript action to be performed
before saving a document.
The name WS stands for "will save". |
public void setDP(PDAction dp) {
actions.setItem( "DP", dp );
}
This will set a JavaScript action to be performed
after printing a document.
The name DP stands for "did print". |
public void setDS(PDAction ds) {
actions.setItem( "DS", ds );
}
This will set a JavaScript action to be performed
after saving a document.
The name DS stands for "did save". |
public void setWC(PDAction wc) {
actions.setItem( "WC", wc );
}
This will set a JavaScript action to be performed
before closing a document.
The name WC stands for "will close". |
public void setWP(PDAction wp) {
actions.setItem( "WP", wp );
}
This will set a JavaScript action to be performed
before printing a document.
The name WP stands for "will print". |
public void setWS(PDAction ws) {
actions.setItem( "WS", ws );
}
This will set a JavaScript action to be performed
before saving a document.
The name WS stands for "will save". |