略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: HaruDoc::setPermission

2024-12-20

HaruDoc::setPermission

(PECL haru >= 0.0.1)

HaruDoc::setPermissionSet permissions for the document

说明

HaruDoc::setPermission ( int $permission ) : bool

Defines permissions for the document.

参数

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 TRUE on success.

错误/异常

发生错误时抛出 HaruException 异常。

参见

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/harudoc.setpermission.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3