setasign\SetaPDF2\Core\Document\Page\Annotation

AdditionalActions Class representing an annotations additional-actions dictionary

File: /SetaPDF v2/Core/Document/Page/Annotation/AdditionalActions.php
Old class name (alias): \SetaPDF_Core_Document_Page_Annotation_AdditionalActions

Class hierarchy

Summary

Properties

$_annotation

The annotation instance


Methods

__construct()

public AdditionalActions::__construct (
Annotation $annotation
)

The constructor.

Parameters
$annotation : Annotation
 

_getAction()

protected AdditionalActions::_getAction (
string $name,
bool $instance = true
): ?\setasign\SetaPDF2\Core\Document\Action\Action

Get the action.

Parameters
$name : string
 
$instance : bool
 
Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

_setAction()

protected AdditionalActions::_setAction (
string $name,
?\setasign\SetaPDF2\Core\Document\Action\Action $action = null
): void

Set the action.

Parameters
$name : string
 
$action : ?\setasign\SetaPDF2\Core\Document\Action\Action
 
Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

cleanUp()

public AdditionalActions::cleanUp (
void
): void

Release memory/cycled references.

getCursorEnter()

Get the action that shall be performed when the cursor enters the annotation’s active area.

Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

getCursorExit()

Get the action that shall be performed when the cursor exits the annotation’s active area.

Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

getDictionary()

Get the "additional actions"-dictionary.

Parameters
$create : bool

Pass true to automatically create the dictionary

getMouseDown()

Get the action that shall be performed when the mouse button is pressed inside the annotation’s active area.

Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

getMouseUp()

Get the action that shall be performed when the mouse button is released inside the annotation’s active area.

Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

getPageClose()

Get the action that shall be performed when the page containing the annotation is closed.

Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

getPageInvisible()

Get the action that shall be performed when the page containing the annotation is no longer visible in the conforming reader’s user interface.

Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

getPageOpen()

Get the action that shall be performed when the page containing the annotation is opened.

Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

getPageVisible()

Get the action that shall be performed when the page containing the annotation becomes visible.

Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

setCursorEnter()

Set the action that shall be performed when the cursor enters the annotation’s active area.

Parameters
$action : \setasign\SetaPDF2\Core\Document\Action\Action
 
Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

setCursorExit()

Set the action that shall be performed when the cursor exits the annotation’s active area.

Parameters
$action : \setasign\SetaPDF2\Core\Document\Action\Action
 
Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

setMouseDown()

Set the action that shall be performed when the mouse button is pressed inside the annotation’s active area.

Parameters
$action : \setasign\SetaPDF2\Core\Document\Action\Action
 
Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

setMouseUp()

Set the action that shall be performed when the mouse button is released inside the annotation’s active area.

Parameters
$action : \setasign\SetaPDF2\Core\Document\Action\Action
 
Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

setPageClose()

Set the action that shall be performed when the page containing the annotation is closed.

Parameters
$action : \setasign\SetaPDF2\Core\Document\Action\Action
 
Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

setPageInvisiable()

setPageInvisible()

Set the action that shall be performed when the page containing the annotation is no longer visible in the conforming reader’s user interface.

Parameters
$action : \setasign\SetaPDF2\Core\Document\Action\Action
 
Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

setPageOpen()

Set the action that shall be performed when the page containing the annotation is opened.

Parameters
$action : \setasign\SetaPDF2\Core\Document\Action\Action
 
Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

setPageVisiable()

setPageVisible()

Set the action that shall be performed when the page containing the annotation becomes visible.

Parameters
$action : \setasign\SetaPDF2\Core\Document\Action\Action
 
Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception