---
title: "GridDesktop.ExportPdfFile"
url: "https://reference.aspose.com/cells/net/aspose.cells.griddesktop/griddesktop/exportpdffile/"
product: "Aspose.Cells for .NET API Reference"
description: "GridDesktop method. Exports to a pdf file stream including disk IO stream or memory stream"
---

## ExportPdfFile(Stream, GridPdfSaveOptions) {#exportpdffile}

Exports to a pdf file stream, including disk IO stream or memory stream.

```csharp
public void ExportPdfFile(Stream pdfStream, GridPdfSaveOptions pdfSaveOptions)
```

| Parameter | Type | Description |
| --- | --- | --- |
| pdfStream | Stream | Stream where to save the pdf. |
| pdfSaveOptions | GridPdfSaveOptions | SaveOptions for pdf. |

### See Also

* class [GridPdfSaveOptions](../../../aspose.cells.griddesktop.data/gridpdfsaveoptions/)
* class [GridDesktop](../)
* namespace [Aspose.Cells.GridDesktop](../../../aspose.cells.griddesktop/)
* assembly [Aspose.Cells.GridDesktop](../../../)

---

## ExportPdfFile(string, GridPdfSaveOptions) {#exportpdffile_1}

Exports to a pdf file stream, including disk IO stream or memory stream.

```csharp
public void ExportPdfFile(string pdfFileName, GridPdfSaveOptions pdfSaveOptions)
```

| Parameter | Type | Description |
| --- | --- | --- |
| pdfFileName | String | The name of the pdf file.. |
| pdfSaveOptions | GridPdfSaveOptions | SaveOptions for pdf. |

### See Also

* class [GridPdfSaveOptions](../../../aspose.cells.griddesktop.data/gridpdfsaveoptions/)
* class [GridDesktop](../)
* namespace [Aspose.Cells.GridDesktop](../../../aspose.cells.griddesktop/)
* assembly [Aspose.Cells.GridDesktop](../../../)


