SetaPDF_Core_Document_Catalog_AdditionalActions Class representing the document catalog’s additional-actions dictionary
File: /SetaPDF v2/Core/Document/Catalog/AdditionalActions.php
Class hierarchy
Summary
Properties
Methods
__construct()
The constructor.
Parameters
- $catalog : SetaPDF_Core_Document_Catalog
_getAction()
Get the action.
Parameters
- $name : string
- $instance : boolean
Exceptions
Throws SetaPDF_Core_SecHandler_Exception
Throws SetaPDF_Core_Type_Exception
_setAction()
Set the action.
Parameters
- $name : string
- $javaScriptAction : string|SetaPDF_Core_Document_Action_JavaScript|SetaPDF_Core_Type_Dictionary|SetaPDF_Core_Type_IndirectObjectInterface
Exceptions
Throws SetaPDF_Core_Type_Exception
getDictionary()
Get the additional actions dictionary.
Parameters
- $create : bool
Pass true to automatically create the dictionary
Exceptions
Throws SetaPDF_Core_SecHandler_Exception
Throws SetaPDF_Core_Type_Exception
getDidPrint()
Get the JavaScript action that shall be performed after printing the document.
Exceptions
Throws SetaPDF_Core_SecHandler_Exception
Throws SetaPDF_Core_Type_Exception
getDidSave()
Get the JavaScript action that shall be performed after saving the document.
Exceptions
Throws SetaPDF_Core_SecHandler_Exception
Throws SetaPDF_Core_Type_Exception
getWillClose()
Get the JavaScript action that shall be performed before closing the document.
Exceptions
Throws SetaPDF_Core_SecHandler_Exception
Throws SetaPDF_Core_Type_Exception
getWillPrint()
Get the JavaScript action that shall be performed before printing the document.
Exceptions
Throws SetaPDF_Core_SecHandler_Exception
Throws SetaPDF_Core_Type_Exception
getWillSave()
Get the JavaScript action that shall be performed before saving the document.
Exceptions
Throws SetaPDF_Core_SecHandler_Exception
Throws SetaPDF_Core_Type_Exception
setDidPrint()
Set the JavaScript action that shall be performed after printing the document.
Parameters
- $javaScriptAction : string|SetaPDF_Core_Document_Action_JavaScript|SetaPDF_Core_Type_Dictionary|SetaPDF_Core_Type_IndirectObjectInterface
Return Values
Returns the
SetaPDF_Core_Document_Catalog_AdditionalActions
object for method chaining.
Exceptions
Throws SetaPDF_Core_SecHandler_Exception
Throws SetaPDF_Core_Type_Exception
setDidSave()
Set the JavaScript action that shall be performed after saving the document.
Parameters
- $javaScriptAction : string|SetaPDF_Core_Document_Action_JavaScript|SetaPDF_Core_Type_Dictionary|SetaPDF_Core_Type_IndirectObjectInterface
Return Values
Returns the
SetaPDF_Core_Document_Catalog_AdditionalActions
object for method chaining.
Exceptions
Throws SetaPDF_Core_SecHandler_Exception
Throws SetaPDF_Core_Type_Exception
setWillClose()
Set the JavaScript action that shall be performed before closing the document.
Parameters
- $javaScriptAction : string|SetaPDF_Core_Document_Action_JavaScript|SetaPDF_Core_Type_Dictionary|SetaPDF_Core_Type_IndirectObjectInterface
Return Values
Returns the
SetaPDF_Core_Document_Catalog_AdditionalActions
object for method chaining.
Exceptions
Throws SetaPDF_Core_SecHandler_Exception
Throws SetaPDF_Core_Type_Exception
setWillPrint()
Set the JavaScript action that shall be performed before printing the document.
Parameters
- $javaScriptAction : string|SetaPDF_Core_Document_Action_JavaScript|SetaPDF_Core_Type_Dictionary|SetaPDF_Core_Type_IndirectObjectInterface
Return Values
Returns the
SetaPDF_Core_Document_Catalog_AdditionalActions
object for method chaining.
Exceptions
Throws SetaPDF_Core_SecHandler_Exception
Throws SetaPDF_Core_Type_Exception
setWillSave()
Set the JavaScript action that shall be performed before saving the document.
Parameters
- $javaScriptAction : string|SetaPDF_Core_Document_Action_JavaScript|SetaPDF_Core_Type_Dictionary|SetaPDF_Core_Type_IndirectObjectInterface
Return Values
Returns the
SetaPDF_Core_Document_Catalog_AdditionalActions
object for method chaining.
Exceptions
Throws SetaPDF_Core_SecHandler_Exception
Throws SetaPDF_Core_Type_Exception