module HexaPDF:: Encryption:: StandardSecurityHandler:: Permissions
Defines all available permissions.
It is possible to use an array of permission symbols instead of an integer to describe the permission set. The used symbols are the lower case versions of the constants, i.e. the symbol for MODIFY_CONSTANT would be :modify_constant.
See: PDF2.0 s7.6.4.2
Constants
- ALL¶
Allows everything
- ASSEMBLE_DOCUMENT¶
Assembling of the document (inserting, rotating or deleting of pages and creation of bookmarks or thumbnail images)
- COPY_CONTENT¶
Copying of content
- EXTRACT_CONTENT¶
Extracting content
PDF 2.0 specifies that this bit should always be set by writers and should be ignored by readers. Therefore this is part of the
RESERVEDconstant.- FILL_IN_FORMS¶
Filling in form fields
- HIGH_QUALITY_PRINT¶
High quality printing
- MODIFY_ANNOTATION¶
Modifying annotations
- MODIFY_CONTENT¶
Modification of the content by operations that are different from those controlled by
MODIFY_ANNOTATION,FILL_IN_FORMSandASSEMBLE_DOCUMENT- PERMISSION_TO_SYMBOL¶
Maps a permission value to its symbol
- PRINT¶
Printing (if
HIGH_QUALITY_PRINTis also set, then high quality printing is allowed)- RESERVED¶
Reserved permission bits that should always be set
- SYMBOL_TO_PERMISSION¶
Maps permission symbols to their respective value