# Workbook.save Method

> Workbook.save method in the TX Sheet Control Angular package: Saves a snapshot with reusable format-specific options; PDF is save-only.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Sheet Control > API Reference > TypeScript API > Angular > Workbook > Workbook.save Method
- **551 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/save-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/save-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/save-method/llms-full.txt

---

Saves a snapshot with reusable format-specific options; PDF is save-only.

Owner: [Workbook](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/llms-full.txt). Package: `@txtextcontrol/tx-sheet-control`. Version: **2.0.0**.

### Syntax

```typescript
save(streamType: StreamType, options?: SaveOptions): Promise<Uint8Array>
```

### Parameters

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `streamType` | `StreamType` | No | The supported input or output format. PDF is output-only. |
| `options` | `SaveOptions \| undefined` | Yes | Supported settings for this operation; omitted settings retain documented defaults. |

### Return Value

`Promise<Uint8Array<ArrayBufferLike>>`.

### Examples

Use a fresh sample workbook for this example. In the browser pass editor.workbook; in Node.js pass the server control. Document-bound objects are obtained from that same owner.

```typescript
import type { Workbook } from '@txtextcontrol/tx-sheet-control/angular';
import { StreamType } from '@txtextcontrol/tx-sheet-control/angular';

async function applyWorkbookSave(book: Workbook) {
    const workbook = book;

    const result = await workbook.save(StreamType.SpreadsheetML, { pdf: { title: 'Invoice', locale: 'de-DE' } });
    console.log(result);
}
```

### Remarks

Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.

### See Also

- [Workbook Class](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/llms-full.txt)
- [Loading and Saving Workbooks](https://docs.textcontrol.com/tx-sheet-control/document-processing/load-save/llms-full.txt)
- [SaveOptions Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/saveoptions/llms-full.txt)
- [StreamType Enumeration](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/streamtype/llms-full.txt)

---

## Nearby

- **Previous:** [Workbook.rows Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/rows-property/llms-full.txt)
- **Next:** [Workbook.saveText Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/savetext-method/llms-full.txt)
