TCPDF::setUserRights( $enable = true, $document = '/FullSave', $annots = '/Create/Delete/Modify/Copy/Import/Export', $form = '/Add/Delete/FillIn/Import/Export/SubmitStandalone/SpawnTemplate', $signature = '/Modify', $ef = '/Create/Delete/Modify/Import', $formex = '' )
Set User’s Rights for PDF Reader WARNING: This is experimental and currently do not work.
Description Description
Check the PDF Reference 8.7.1 Transform Methods, Table 8.105 Entries in the UR transform parameters dictionary
Parameters Parameters
- $enable
-
(Optional) (boolean) if true enable user's rights on PDF reader
Default value: true
- $document
-
(Optional) (string) Names specifying additional document-wide usage rights for the document. The only defined value is "/FullSave", which permits a user to save the document along with modified form and/or annotation data.
Default value: '/FullSave'
- $annots
-
(Optional) (string) Names specifying additional annotation-related usage rights for the document. Valid names in PDF 1.5 and later are /Create/Delete/Modify/Copy/Import/Export, which permit the user to perform the named operation on annotations.
Default value: '/Create/Delete/Modify/Copy/Import/Export'
- $form
-
(Optional) (string) Names specifying additional form-field-related usage rights for the document. Valid names are: /Add/Delete/FillIn/Import/Export/SubmitStandalone/SpawnTemplate
Default value: '/Add/Delete/FillIn/Import/Export/SubmitStandalone/SpawnTemplate'
- $signature
-
(Optional) (string) Names specifying additional signature-related usage rights for the document. The only defined value is /Modify, which permits a user to apply a digital signature to an existing signature form field or clear a signed signature form field.
Default value: '/Modify'
- $ef
-
(Optional) (string) Names specifying additional usage rights for named embedded files in the document. Valid names are /Create/Delete/Modify/Import, which permit the user to perform the named operation on named embedded files Names specifying additional embedded-files-related usage rights for the document.
Default value: '/Create/Delete/Modify/Import'
- $formex
-
(Optional) (string) Names specifying additional form-field-related usage rights. The only valid name is BarcodePlaintext, which permits text form field data to be encoded as a plaintext two-dimensional barcode.
Default value: ''
Source Source
File: includes/lib/tcpdf/tcpdf.php
Changelog Changelog
Version | Description |
---|---|
2.9.000 | Introduced. |