---
title: "GridJsWorkbook.SaveToPdf"
url: "https://reference.aspose.com/cells/net/aspose.cells.gridjs/gridjsworkbook/savetopdf/"
product: "Aspose.Cells for .NET API Reference"
description: "GridJsWorkbook method. Saves the memory data to the file paththe save format is pdf"
---

## SaveToPdf(string) {#savetopdf_1}

Saves the memory data to the file path,the save format is pdf.

```csharp
public void SaveToPdf(string path)
```

| Parameter | Type | Description |
| --- | --- | --- |
| path | String | The file path to save. |

### See Also

* class [GridJsWorkbook](../)
* namespace [Aspose.Cells.GridJs](../../../aspose.cells.gridjs/)
* assembly [Aspose.Cells.GridJs](../../../)

---

## SaveToPdf(Stream) {#savetopdf}

Saves the memory data to the sream,the save format is pdf.

```csharp
public void SaveToPdf(Stream stream)
```

| Parameter | Type | Description |
| --- | --- | --- |
| stream | Stream | The stream to save. |

### See Also

* class [GridJsWorkbook](../)
* namespace [Aspose.Cells.GridJs](../../../aspose.cells.gridjs/)
* assembly [Aspose.Cells.GridJs](../../../)


