setasign\SetaPDF2\Core\Document\Catalog

AdditionalActions Class representing the document catalog’s additional-actions dictionary

File: /SetaPDF v2/Core/Document/Catalog/AdditionalActions.php
Old class name (alias): \SetaPDF_Core_Document_Catalog_AdditionalActions

Class hierarchy

Summary

Properties

$_catalog


Methods

__construct()

The constructor.

Parameters
$catalog : \SetaPDF_Core_Document_Catalog
 

_getAction()

protected AdditionalActions::_getAction (
string $name,
bool $instance = true
): ?\SetaPDF_Core_Document_Action_JavaScript

Get the action.

Parameters
$name : string
 
$instance : bool
 
Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

cleanUp()

public AdditionalActions::cleanUp (
void
): void

Release memory/cycled references.

getDictionary()

Get the additional actions dictionary.

Parameters
$create : bool

Pass true to automatically create the dictionary

Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

getDidPrint()

Get the JavaScript action that shall be performed after printing the document.

Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

getDidSave()

Get the JavaScript action that shall be performed after saving the document.

Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

getDocument()

Get the document instance.

getWillClose()

Get the JavaScript action that shall be performed before closing the document.

Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

getWillPrint()

Get the JavaScript action that shall be performed before printing the document.

Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

getWillSave()

Get the JavaScript action that shall be performed before saving the document.

Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception