DS Server

StreamType Enumerations

Enumerations

Description

Supported document stream formats exposed by the viewer.

Syntax

StreamType

Examples

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

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;
}

Members

Enumerations

EnumerationDescription
StreamTypeSupported document stream formats exposed by the viewer.