Setting PDF Permissions from Command-line
If the output document is protected with an owner password (also known as master or permission password), it is possible to adjust standard PDF permissions using the following options:
+-----------------------+-----------------------+-----------------------+
| Option | Parameter | Description |
+=======================+=======================+=======================+
| -d or \--disable | e.g. to disable any | This option accepts a |
| | changes to the | string of permissions |
| | document specify --d | flags that should be |
| | m | disabled. |
| | | |
| | e.g. to disable | The permission string |
| | printing and content | may include the |
| | extraction specify | following flags: |
| | --d phxdcm | |
| | | - a - All |
| | | permissions. |
| | | |
| | | - p - Printing. |
| | | |
| | | - m - Changing the |
| | | document. |
| | | |
| | | - c - Content |
| | | copying or |
| | | extraction. |
| | | |
| | | - o - Commenting. |
| | | |
| | | - f - Filling of |
| | | form fields. |
| | | |
| | | - x - Content |
| | | extraction for |
| | | accessibility. |
| | | |
| | | - s - Document |
| | | assembly. |
| | | |
| | | - h - High quality |
| | | printing. |
+-----------------------+-----------------------+-----------------------+
| -e or --enable | e.g. to enable | A string of |
| | commenting: -e o | permissions flags |
| | | (see \--disable |
| | | option above) that |
| | | can be enabled. If |
| | | there is a conflict |
| | | with one of the flags |
| | | in the \'disable\' |
| | | option, the |
| | | permission is not |
| | | granted. |
+-----------------------+-----------------------+-----------------------+Permissions for the document can be set separately from access to the document which is controlled using the user password. With password security, it is possible to require different passwords to open (i.e. user password) and modify (i.e. owner password) the document. This means that you can allow one set of users to open the document, and another, possibly smaller set, to make unrestricted changes. Users without the owner password can only make the changes allowed when the document was prepared.
The following table relates permissions settings options in Adobe® Acrobat® Reader to permission flags in Apryse PDFSecure:
Last updated
Was this helpful?