setasign\SetaPDF2\Core\Document\Catalog

Permissions Class representing a helper object for the Perms entry in the document catalog.

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

Class hierarchy

Summary

Properties

$_catalog

The documents catalog instance


Methods

__construct()

The constructor.

Parameters
$catalog : \SetaPDF_Core_Document_Catalog
 

cleanUp()

public Permissions::cleanUp (
void
): void

Release cycled references.

hasUsageRights()

public Permissions::hasUsageRights (
void
): bool

Checks if usage rights are defined for this document.

Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

removeUsageRights()

public Permissions::removeUsageRights (
void
): bool

Removes the usage rights if they are defined for this document.

Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception