enum

Hpdf::Permission

Inherits Enum / Comparable / Value / Object

set via Doc#set_password_and_permission.

Constants

EnableRead = 0

user can read the document.

EnablePrint = 4

user can print the document.

EnableEditAll = 8

user can edit the contents of the document other than annotations, form fields.

EnableCopy = 16

user can copy the text and the graphics of the document.

EnableEdit = 32

user can add or modify the annotations and form fields of the document.

None = 0
All = 60

Instance methods

enable_copy?

Returns true if this enum value contains EnableCopy

Source
enable_edit?

Returns true if this enum value contains EnableEdit

Source
enable_edit_all?

Returns true if this enum value contains EnableEditAll

Source
enable_print?

Returns true if this enum value contains EnablePrint

Source
enable_read?

Returns true if this enum value contains EnableRead

Source
none?
Source