# StreamType Enumerations

> Supported document stream formats exposed by the viewer.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Enumerations
- **Path:** TX Text Control .NET Server > Reference > JavaScript API - Document Viewer > StreamType Enumerations
- **333 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/streamtype/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/streamtype/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/streamtype/llms-full.txt

---

### Description

Supported document stream formats exposed by the viewer.

### Syntax

```javascript
StreamType
```

### Examples

The following example applies `TXDocumentViewer.StreamType` in a practical Document Viewer workflow.

```javascript
async function exportCompletedFormAsPdf() {
    const saveSettings = {
        mergeFormFields: true,
        embedAnnotations: true
    };
    const saveResult = await TXDocumentViewer.saveDocument(
        TXDocumentViewer.StreamType.AdobePDF,
        saveSettings
    );
    const documentBase64 = await saveResult.base64();
    console.log("Exported PDF characters:", documentBase64.length);
    return documentBase64;
}
```

---

## In This Section

- [Javascript: StreamType Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/streamtype/enumeration/llms-full.txt): Supported document stream formats exposed by the viewer.

---

## Nearby

- **Previous:** [Javascript: StampDefinition.weight Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/stampdefinition/weight-property/llms-full.txt)
- **Next:** [Javascript: StreamType Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/streamtype/enumeration/llms-full.txt)
