# PdfExportOptions.dashboardWidth Property

> PdfExportOptions.dashboardWidth property in the TX Sheet Control TypeScript API for the browser, with its type number and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > PdfExportOptions > PdfExportOptions.dashboardWidth Property
- **458 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pdfexportoptions/dashboardwidth-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pdfexportoptions/dashboardwidth-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pdfexportoptions/dashboardwidth-property/llms-full.txt

---

Sets the dashboard canvas width in CSS pixels, from 480 to 4096. The default width is 1440.

Package: `@txtextcontrol/tx-sheet-control`.

### Syntax

```typescript
dashboardWidth?: number;
```

### Examples

Pass an initialized control and an existing dashboard. Apply a coordinated theme and export the current reporting context as a PDF.

```typescript
import { type Spreadsheet, type Dashboard, StreamType } from '@txtextcontrol/tx-sheet-control';

async function exportDashboard(editor: Spreadsheet, dashboard: Dashboard) {
    dashboard.applyTheme('dark-1');
    const bytes = await editor.save(StreamType.PDF, {
        pdf: { dashboardId: dashboard.id, dashboardWidth: 1440, dashboardPage: 'fit' }
    });
    const url = URL.createObjectURL(new Blob([new Uint8Array(bytes).buffer], { type: 'application/pdf' }));
    const link = document.createElement('a');
    link.href = url;
    link.download = 'performance.pdf';
    link.click();
    setTimeout(() => URL.revokeObjectURL(url), 5000);
}
```

### Remarks

PDF branding follows the configured license and whether the editor or server generates the file. Browser animations and editing controls are omitted. TXWB remains the editable dashboard format.

### See Also

- [PdfExportOptions](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pdfexportoptions/llms-full.txt)

---

## Nearby

- **Previous:** [PdfExportOptions.dashboardId Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pdfexportoptions/dashboardid-property/llms-full.txt)
- **Next:** [PdfExportOptions.dashboardPage Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pdfexportoptions/dashboardpage-property/llms-full.txt)
