HaruDoc::setPermission

(PECL haru >= 0.0.1)

HaruDoc::setPermissionSet permissions for the document

Descrierea

HaruDoc::setPermission ( int $permission ) : bool

Defines permissions for the document.

Parametri

permission

The values is a combination of these flags:

  • HaruDoc::ENABLE_READ - user can read the document.
  • HaruDoc::ENABLE_PRINT - user can print the document.
  • HaruDoc::ENABLE_EDIT_ALL - user can edit the contents of the document other than annotations and form fields.
  • HaruDoc::ENABLE_COPY - user can copy the text and the graphics of the document.
  • HaruDoc::ENABLE_EDIT - user can add or modify the annotations and form fields of the document.

Valorile întoarse

Returns TRUE on success.

Erori/Excepții

Emite un HaruException în caz de eroare.

A se vedea și