HaruDoc::setPermission

(PECL haru >= 0.0.1)
Set permissions for the document
bool HaruDoc::setPermission ( int $permission )

Defines permissions for the document.

Parameters:
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.
Returns:

Returns TRUE on success.

Exception:

Throws a HaruException on error.

See also:

HaruDoc::setPassword() -

HaruDoc::setEncryptionMode() -

doc_php
2016-02-24 16:03:13
Comments
Leave a Comment

Please login to continue.