setasign\SetaPDF2\Core\Document\Page
AdditionalActions Class representing a pages additional-actions dictionary
File: /SetaPDF v2/Core/Document/Page/AdditionalActions.php
Old class name (alias):
\SetaPDF_Core_Document_Page_AdditionalActions
Class hierarchy
Summary
Properties
$_page
protected \SetaPDF_Core_Document_Page AdditionalActions::$_page
The catalog instance
Methods
__construct()
_setAction()
Set the action.
Parameters
- $name : string
- $action : ?\SetaPDF_Core_Document_Action
Exceptions
getDictionary()
public AdditionalActions::getDictionary (
bool $create = false
): null|\SetaPDF_Core_Type_AbstractType|\SetaPDF_Core_Type_DictionaryGet the additional actions dictionary.
Parameters
- $create : bool
Pass true to automatically create the dictionary
setClose()
public AdditionalActions::setClose (
\SetaPDF_Core_Document_Action $action
): \SetaPDF_Core_Document_Page_AdditionalActionsSet the action that shall be performed when the page is closed.
Parameters
- $action : \SetaPDF_Core_Document_Action
Return Values
Returns the AdditionalActions object for method chaining.
Exceptions
setOpen()
public AdditionalActions::setOpen (
\SetaPDF_Core_Document_Action $action
): \SetaPDF_Core_Document_Page_AdditionalActionsSet the action that shall be performed when the page is opened.
Parameters
- $action : \SetaPDF_Core_Document_Action
Return Values
Returns the AdditionalActions object for method chaining.