---
layout: default-layout
needAutoGenerateSidebar: true
needGenerateH3Content: true
noTitleIndex: true
title: Dynamsoft Document Viewer API Reference - Interface CaptureViewerConstructorOptions
keywords: Documentation, Dynamsoft Document Viewer, API Reference, Interface CaptureViewerConstructorOptions
breadcrumbText: Interface CaptureViewerConstructorOptions
description: Dynamsoft Document Viewer Documentation API Reference Interface CaptureViewerConstructorOptions Page
permalink: /api/interface/captureviewerconstructoroptions.html
---

# CaptureViewerConstructorOptions

## Syntax

```typescript
interface CaptureViewerConstructorOptions {
    container?: string | HTMLElement;
    keyboardInteractionConfig?: KeyboardInteractionConfig;
    viewerConfig?: CaptureViewerConfig;
    uiConfig?: UiConfig;
    groupUid?: string;
}
```

## Attributes

### container

The container which is used to show the viewer. Its `id` or `HTMLElement` is accepted.

### keyboardInteractionConfig

This configures the use of keyboard shortcuts for the viewer - please see [`KeyboardInteractionConfig`](https://www.dynamsoft.com/document-viewer/docs/api/interface/keyboardinteractionconfig.md) for details. If not specified, all keyboard shortcuts are disabled by default.

### viewerConfig

The configurations of viewer, please refer to [`CaptureViewerConfig`](https://www.dynamsoft.com/document-viewer/docs/api/interface/captureviewerconfig.md). If it is not specified, the [default configuration](https://www.dynamsoft.com/document-viewer/docs/viewer/viewerconfig.md#captureviewerconfig) will be applied.

### uiConfig

The UI layout configurations of viewer, please refer to [`UiConfig`](https://www.dynamsoft.com/document-viewer/docs/api/interface/uiconfig.md). If it is not specified, the [default UI](https://www.dynamsoft.com/document-viewer/docs/ui/default_ui.md#capture-viewer) will be applied.

### groupUid

The uid of viewers' group. If it is not specified, a random groupUid will be generated.



## Related

- [`CaptureViewer()`](https://www.dynamsoft.com/document-viewer/docs/api/class/captureviewer.md#captureviewer)
