# PdfPermissions Class

> PdfPermissions class in the TX Sheet Control .NET API: Standard reader permissions. Covers 1 constructor and 6 properties and a C# example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Class
- **Namespace:** `TXTextControl.TXSheetControl.Server`
- **Package:** `TXTextControl.TXSheetControl.Server` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Package:** `TXTextControl.TXSheetControl.Blazor` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Server > PdfPermissions Class
- **1214 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfpermissions/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfpermissions/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfpermissions/llms-full.txt

---

Standard reader permissions. Accessibility extraction is always allowed, as required by the PDF standard.

### Syntax

```csharp
public class PdfPermissions
```

### Members

#### Constructors

| Constructor | Description |
|---|---|
| [Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfpermissions/constructor/llms-full.txt) |  |

#### Properties

| Property | Description |
|---|---|
| [Annotating](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfpermissions/annotating-property/llms-full.txt) | Add or modify annotations. Some readers also allow form filling with this permission. |
| [Assembling](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfpermissions/assembling-property/llms-full.txt) | Insert, rotate or delete pages and create outlines or thumbnails. |
| [Copying](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfpermissions/copying-property/llms-full.txt) | Copy or extract text and graphics for ordinary purposes. |
| [FillingForms](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfpermissions/fillingforms-property/llms-full.txt) | Fill existing interactive forms and sign existing signature fields. |
| [Modifying](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfpermissions/modifying-property/llms-full.txt) | Modify document contents except operations governed by the separate permissions. |
| [Printing](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfpermissions/printing-property/llms-full.txt) | Allowed values: none, lowResolution, highResolution. Omission permits high resolution printing. |

### Examples

Apply PdfPermissions to a small working document, then return the exported bytes. The caller can save or download the result.

```csharp
using TXTextControl.TXSheetControl.Server;

async Task<byte[]> CreatePdfPermissionsReportAsync(ServerSheetControl control)
{
    var book = control.Workbook;
    var sheet = await book.Sheets.AtAsync(0);
    await sheet.Cell("B8").SetValueAsync(120);
    await sheet.Cell("B9").SetValueAsync(80);
    await sheet.Cell("B10").SetFormulaAsync("=SUM(B8:B9)");
    await sheet.Cell("A1").SetTextAsync("October invoice");
    await sheet.Cell("A1").FormatAsync(new { fontFamily = "Liberation Sans", fontSize = 16, bold = true, textColor = "#ffffff", fillColor = "#163b63" });
    await sheet.Range("B8:B10").FormatAsync(new { numberFormatCode = "#,##0.00", fontFamily = "Liberation Sans", fontSize = 11 });

    var settings = new PdfPermissions()
    {
        Copying = false,
        Modifying = false,
        Printing = "highResolution"
    };

    return await control.SaveAsync(StreamType.PDF, new SaveOptions { Pdf = new PdfOptions { Security = new PdfSecurityOptions { OwnerPassword = "invoice-owner", Permissions = settings } } });
}
```

### See Also

- [TXTextControl.TXSheetControl.Server Namespace](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/llms-full.txt)
- [Exporting Worksheets to PDF](https://docs.textcontrol.com/tx-sheet-control/pdf/export/llms-full.txt)

---

## In This Section

- [PdfPermissions.Annotating Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfpermissions/annotating-property/llms-full.txt): PdfPermissions.Annotating property in the TX Sheet Control .NET API: Add or modify annotations. Some readers also allow form filling with this permission.
- [PdfPermissions.Assembling Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfpermissions/assembling-property/llms-full.txt): PdfPermissions.Assembling property in the TX Sheet Control .NET API: Insert, rotate or delete pages and create outlines or thumbnails.
- [PdfPermissions Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfpermissions/constructor/llms-full.txt): PdfPermissions constructor in the TX Sheet Control .NET API, with its syntax, a C# example and remarks on awaiting tasks and handles.
- [PdfPermissions.Copying Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfpermissions/copying-property/llms-full.txt): PdfPermissions.Copying property in the TX Sheet Control .NET API: Copy or extract text and graphics for ordinary purposes.
- [PdfPermissions.FillingForms Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfpermissions/fillingforms-property/llms-full.txt): PdfPermissions.FillingForms property in the TX Sheet Control .NET API: Fill existing interactive forms and sign existing signature fields.
- [PdfPermissions.Modifying Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfpermissions/modifying-property/llms-full.txt): PdfPermissions.Modifying property in the TX Sheet Control .NET API: Modify document contents except operations governed by the separate permissions.
- [PdfPermissions.Printing Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfpermissions/printing-property/llms-full.txt): PdfPermissions.Printing property in the TX Sheet Control .NET API: Allowed values: none, lowResolution, highResolution. Includes the syntax and a C# example.

---

## Nearby

- **Previous:** [PdfOptions.DashboardPage Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/dashboardpage-property/llms-full.txt)
- **Next:** [PdfPermissions Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfpermissions/constructor/llms-full.txt)
