# PdfOptions Class

> PdfOptions class in the TX Sheet Control .NET API: PDF page selection and print context with explicit document fonts and cancellation support.

- **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 > PdfOptions Class
- **2156 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/llms-full.txt

---

PDF page selection and print context with explicit document fonts and cancellation support.

### Syntax

```csharp
public class PdfOptions
```

### Members

#### Constructors

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

#### Properties

| Property | Description |
|---|---|
| [AllowFormulaErrors](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/allowformulaerrors-property/llms-full.txt) |  |
| [Author](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/author-property/llms-full.txt) | Document author, independent of workbook review identity. |
| [Compress](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/compress-property/llms-full.txt) | Lossless Flate compression, enabled by default. |
| [Creator](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/creator-property/llms-full.txt) | Document creator application metadata. |
| [Currency](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/currency-property/llms-full.txt) |  |
| [Date](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/date-property/llms-full.txt) |  |
| [DecorativeFigures](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/decorativefigures-property/llms-full.txt) | Drawing/chart IDs or cell-picture addresses explicitly identified as decorative. |
| [DocumentProperties](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/documentproperties-property/llms-full.txt) | Shared PDF/Excel metadata. Supplied fields override equivalent legacy flat PDF metadata. |
| [Dpi](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/dpi-property/llms-full.txt) |  |
| [FigureDescriptions](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/figuredescriptions-property/llms-full.txt) | Alternative descriptions keyed by drawing/chart ID or cell-picture address. |
| [FileName](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/filename-property/llms-full.txt) |  |
| [FilePath](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/filepath-property/llms-full.txt) |  |
| [Fonts](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/fonts-property/llms-full.txt) |  |
| [HeaderRows](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/headerrows-property/llms-full.txt) | Number of leading print-area rows used as column headers. Excel table headers are automatic. |
| [Keywords](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/keywords-property/llms-full.txt) | Up to 128 document keywords. |
| [Language](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/language-property/llms-full.txt) | BCP 47 document language, defaulting to the print locale or en-US. |
| [Locale](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/locale-property/llms-full.txt) |  |
| [PageLayout](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/pagelayout-property/llms-full.txt) | Page arrangement: singlePage, oneColumn, twoColumnLeft, twoColumnRight, twoPageLeft or twoPageRight. |
| [PageMode](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/pagemode-property/llms-full.txt) | Opening panel: useNone, useOutlines, useThumbs, fullScreen, useOC or useAttachments. |
| [PageNumbers](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/pagenumbers-property/llms-full.txt) |  |
| [PdfUa](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/pdfua-property/llms-full.txt) | Requests PDF/UA-1 metadata and strict accessibility preflight checks. |
| [RowHeaderColumns](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/rowheadercolumns-property/llms-full.txt) | Number of leading print-area columns used as row headers. |
| [Security](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/security-property/llms-full.txt) | API-only encryption, passwords and reader permissions for this export. |
| [Sheet](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/sheet-property/llms-full.txt) |  |
| [SheetId](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/sheetid-property/llms-full.txt) |  |
| [Subject](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/subject-property/llms-full.txt) | Document subject metadata. |
| [Tagged](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/tagged-property/llms-full.txt) | Emits logical document tags by default; set false for explicitly untagged output. |
| [TimeZone](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/timezone-property/llms-full.txt) |  |
| [Title](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/title-property/llms-full.txt) |  |
| [ViewerPreferences](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/viewerpreferences-property/llms-full.txt) | API-only presentation and printing hints. |

### Examples

Apply PdfOptions 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[]> CreatePdfOptionsReportAsync(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 PdfOptions()
    {
        Dpi = 144,
        Language = "de-DE",
        Locale = "de-DE",
        Title = "October invoice"
    };

    return await control.SaveAsync(StreamType.PDF, new SaveOptions { Pdf = 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)

### Dashboard PDF Settings

| Property | Description |
|---|---|
| [DashboardId](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/dashboardid-property/llms-full.txt) | Selects the dashboard to export instead of worksheet pages. Do not combine it with a worksheet sheetId. |
| [DashboardWidth](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/dashboardwidth-property/llms-full.txt) | Sets the dashboard canvas width in CSS pixels, from 480 to 4096. The default width is 1440. |
| [DashboardPage](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/dashboardpage-property/llms-full.txt) | Uses one dashboard-sized page in fit mode, or paginates with the workbook paper size and printable area in print mode. |

---

## In This Section

- [PdfOptions.AllowFormulaErrors Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/allowformulaerrors-property/llms-full.txt): PdfOptions.AllowFormulaErrors property in the TX Sheet Control .NET API, with its syntax, its type bool and a C# example.
- [PdfOptions.Author Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/author-property/llms-full.txt): PdfOptions.Author property in the TX Sheet Control .NET API: Document author, independent of workbook review identity. Covers its type string? and a C# example.
- [PdfOptions.Compress Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/compress-property/llms-full.txt): PdfOptions.Compress property in the TX Sheet Control .NET API: Lossless Flate compression, enabled by default. Covers its type bool? and a C# example.
- [PdfOptions Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/constructor/llms-full.txt): PdfOptions constructor in the TX Sheet Control .NET API, with its syntax, a C# example and remarks on awaiting tasks and handles.
- [PdfOptions.Creator Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/creator-property/llms-full.txt): PdfOptions.Creator property in the TX Sheet Control .NET API: Document creator application metadata. Covers its type string? and a C# example.
- [PdfOptions.Currency Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/currency-property/llms-full.txt): PdfOptions.Currency property in the TX Sheet Control .NET API, with its syntax, its type string?, a C# example and remarks on awaiting tasks and handles.
- [PdfOptions.DashboardId Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/dashboardid-property/llms-full.txt): PdfOptions.DashboardId property in the .NET API: Selects the dashboard to export instead of worksheet pages. Do not combine it with a worksheet sheetId.
- [PdfOptions.DashboardPage Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/dashboardpage-property/llms-full.txt): PdfOptions.DashboardPage property in the .NET API: One dashboard-sized page in fit mode, or the workbook paper size and printable area in print mode.
- [PdfOptions.DashboardWidth Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/dashboardwidth-property/llms-full.txt): PdfOptions.DashboardWidth property in the TX Sheet Control .NET API: Sets the dashboard canvas width in CSS pixels, from 480 to 4096. The default width is 1440.
- [PdfOptions.Date Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/date-property/llms-full.txt): PdfOptions.Date property in the TX Sheet Control .NET API, with its syntax, its type string?, a C# example and remarks on awaiting tasks and handles.
- [PdfOptions.DecorativeFigures Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/decorativefigures-property/llms-full.txt): PdfOptions.DecorativeFigures property in the TX Sheet Control .NET API: Drawing/chart IDs or cell-picture addresses explicitly identified as decorative.
- [PdfOptions.DocumentProperties Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/documentproperties-property/llms-full.txt): PdfOptions.DocumentProperties property in the TX Sheet Control .NET API: Shared PDF/Excel metadata. Covers its type DocumentProperties? and a C# example.
- [PdfOptions.Dpi Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/dpi-property/llms-full.txt): PdfOptions.Dpi property in the TX Sheet Control .NET API, with its syntax, its type double?, a C# example and remarks on awaiting tasks and handles.
- [PdfOptions.FigureDescriptions Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/figuredescriptions-property/llms-full.txt): PdfOptions.FigureDescriptions property in the TX Sheet Control .NET API: Alternative descriptions keyed by drawing/chart ID or cell-picture address.
- [PdfOptions.FileName Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/filename-property/llms-full.txt): PdfOptions.FileName property in the TX Sheet Control .NET API, with its syntax, its type string?, a C# example and remarks on awaiting tasks and handles.
- [PdfOptions.FilePath Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/filepath-property/llms-full.txt): PdfOptions.FilePath property in the TX Sheet Control .NET API, with its syntax, its type string?, a C# example and remarks on awaiting tasks and handles.
- [PdfOptions.Fonts Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/fonts-property/llms-full.txt): PdfOptions.Fonts property in the TX Sheet Control .NET API, with its syntax, its type EmbeddedFont[], a C# example and remarks on awaiting tasks and handles.
- [PdfOptions.HeaderRows Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/headerrows-property/llms-full.txt): PdfOptions.HeaderRows property in the TX Sheet Control .NET API: Number of leading print-area rows used as column headers. Excel table headers are automatic.
- [PdfOptions.Keywords Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/keywords-property/llms-full.txt): PdfOptions.Keywords property in the TX Sheet Control .NET API: Up to 128 document keywords. Covers its type string[] and a C# example.
- [PdfOptions.Language Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/language-property/llms-full.txt): PdfOptions.Language property in the TX Sheet Control .NET API: BCP 47 document language, defaulting to the print locale or en-US.
- [PdfOptions.Locale Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/locale-property/llms-full.txt): PdfOptions.Locale property in the TX Sheet Control .NET API, with its syntax, its type string?, a C# example and remarks on awaiting tasks and handles.
- [PdfOptions.PageLayout Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/pagelayout-property/llms-full.txt): PdfOptions.PageLayout property in the .NET API: Page arrangement: singlePage, oneColumn, twoColumnLeft, twoColumnRight, twoPageLeft or twoPageRight.
- [PdfOptions.PageMode Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/pagemode-property/llms-full.txt): PdfOptions.PageMode property in the TX Sheet Control .NET API: Opening panel: useNone, useOutlines, useThumbs, fullScreen, useOC or useAttachments.
- [PdfOptions.PageNumbers Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/pagenumbers-property/llms-full.txt): PdfOptions.PageNumbers property in the TX Sheet Control .NET API, with its syntax, its type int[], a C# example and remarks on awaiting tasks and handles.
- [PdfOptions.PdfUa Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/pdfua-property/llms-full.txt): PdfOptions.PdfUa property in the TX Sheet Control .NET API: Requests PDF/UA-1 metadata and strict accessibility preflight checks.
- [PdfOptions.RowHeaderColumns Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/rowheadercolumns-property/llms-full.txt): PdfOptions.RowHeaderColumns property in the TX Sheet Control .NET API: Number of leading print-area columns used as row headers.
- [PdfOptions.Security Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/security-property/llms-full.txt): PdfOptions.Security property in the TX Sheet Control .NET API: API-only encryption, passwords and reader permissions for this export.
- [PdfOptions.Sheet Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/sheet-property/llms-full.txt): PdfOptions.Sheet property in the TX Sheet Control .NET API, with its syntax, its type Worksheet?, a C# example and remarks on awaiting tasks and handles.
- [PdfOptions.SheetId Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/sheetid-property/llms-full.txt): PdfOptions.SheetId property in the TX Sheet Control .NET API, with its syntax, its type string?, a C# example and remarks on awaiting tasks and handles.
- [PdfOptions.Subject Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/subject-property/llms-full.txt): PdfOptions.Subject property in the TX Sheet Control .NET API: Document subject metadata. Covers its type string? and a C# example.
- [PdfOptions.Tagged Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/tagged-property/llms-full.txt): PdfOptions.Tagged property in the TX Sheet Control .NET API: Emits logical document tags by default; set false for explicitly untagged output.
- [PdfOptions.TimeZone Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/timezone-property/llms-full.txt): PdfOptions.TimeZone property in the TX Sheet Control .NET API, with its syntax, its type string?, a C# example and remarks on awaiting tasks and handles.
- [PdfOptions.Title Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/title-property/llms-full.txt): PdfOptions.Title property in the TX Sheet Control .NET API, with its syntax, its type string?, a C# example and remarks on awaiting tasks and handles.
- [PdfOptions.ViewerPreferences Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pdfoptions/viewerpreferences-property/llms-full.txt): PdfOptions.ViewerPreferences property in the TX Sheet Control .NET API: API-only presentation and printing hints. Includes the syntax and a C# example.

---

## Nearby

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