Class

|                |
|----------------|
| PDFPermissions |

<div class="rst-class">

forsearch

</div>

PDF

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

# Description

An object used to get and set permissions to a `PDFDocument</api/pdf/pdfdocument>`. Assigning a password to a PDF document via <span class="title-ref">PDFPermissions</span> also protects the file with encryption.

# Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                                                            | Type                               | Read-Only | Shared |
|-----------------------------------------------------------------|------------------------------------|-----------|--------|
| `AllowCopyingContents<pdfpermissions.allowcopyingcontents>`     | `Boolean</api/data_types/boolean>` |           |        |
| `AllowModifyingContents<pdfpermissions.allowmodifyingcontents>` | `Boolean</api/data_types/boolean>` |           |        |
| `AllowPrinting<pdfpermissions.allowprinting>`                   | `Boolean</api/data_types/boolean>` |           |        |
| `OwnerPassword<pdfpermissions.ownerpassword>`                   | `String</api/data_types/string>`   |           |        |
| `UserPassword<pdfpermissions.userpassword>`                     | `String</api/data_types/string>`   |           |        |

# Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                                      | Parameters                                                                                               | Returns | Shared |
|-------------------------------------------|----------------------------------------------------------------------------------------------------------|---------|--------|
| `Constructor<pdfpermissions.constructor>` | ownerPassword As `String</api/data_types/string>`, userPassword As `String</api/data_types/string>` = "" |         |        |

# Property descriptions

<div id="pdfpermissions.allowcopyingcontents">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

PDFPermissions.AllowCopyingContents

**AllowCopyingContents** As `Boolean</api/data_types/boolean>`

> If `True</api/language/true>`, the user will be able to copy the contents of the document to the clipboard.

<div id="pdfpermissions.allowmodifyingcontents">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

PDFPermissions.AllowModifyingContents

**AllowModifyingContents** As `Boolean</api/data_types/boolean>`

> If `True</api/language/true>`, the user will be able to alter the contents of the document.

<div id="pdfpermissions.allowprinting">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

PDFPermissions.AllowPrinting

**AllowPrinting** As `Boolean</api/data_types/boolean>`

> If `True</api/language/true>`, the user will be able to print the document.

<div id="pdfpermissions.ownerpassword">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

PDFPermissions.OwnerPassword

**OwnerPassword** As `String</api/data_types/string>`

> The password required to change the permissions of the document.
>
> <div class="note">
>
> <div class="title">
>
> Note
>
> </div>
>
> Only Latin characters are acceptable in passwords.
>
> </div>

<div id="pdfpermissions.userpassword">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

PDFPermissions.UserPassword

**UserPassword** As `String</api/data_types/string>`

> The password required to open and read the document.
>
> <div class="note">
>
> <div class="title">
>
> Note
>
> </div>
>
> Only Latin characters are acceptable in passwords.
>
> </div>

# Method descriptions

<div id="pdfpermissions.constructor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

PDFPermissions.Constructor

**Constructor**(ownerPassword As `String</api/data_types/string>`, userPassword As `String</api/data_types/string>` = "")

> Creates a new <span class="title-ref">PDFPermissions</span> object with the *ownerPassword* and *userPassword* passed. If the *userPassword* is omitted, it will not have one.

# Compatibility

|                       |     |
|-----------------------|-----|
| **Project Types**     | All |
| **Operating Systems** | All |

<div class="seealso">

`PDFDocument</api/pdf/pdfdocument>` class

</div>
