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

# EditViewerConfig

## Syntax

```typescript
interface EditViewerConfig {
    canvasStyle?: CanvasStyle;
    pageStyle?: BaseStyle;
    currentPageStyle?: BaseStyle;
    quadSelectionStyle?: QuadSelectionStyle;
    enableLoadSourceByDrag?: boolean;
    enableMagnifier?: boolean;
    enableSlide?: boolean;
    enableAutoScrollForTextSelection?: boolean;
    scrollToLatest?: boolean; 
    scrollDirection?: string; 
    minZoom?: number; 
    maxZoom?: number;
}
```

## Attributes

### canvasStyle

The style of canvas of the viewer. Please refer to [`CanvasStyle`](https://www.dynamsoft.com/document-viewer/docs/api/interface/styleinterface/canvasstyle.md).

### pageStyle

The style of displayed page in the viewer. Please refer to [`BaseStyle`](https://www.dynamsoft.com/document-viewer/docs/api/interface/styleinterface/basestyle.md).

### currentPageStyle

The style of current page in the viewer. Please refer to [`BaseStyle`](https://www.dynamsoft.com/document-viewer/docs/api/interface/styleinterface/basestyle.md).

### quadSelectionStyle

The style of rectangular selection. Please refer to [`QuadSelectionStyle`](https://www.dynamsoft.com/document-viewer/docs/api/interface/styleinterface/quadselectionstyle.md).

### enableLoadSourceByDrag

Enables loading files by dragging them into the Viewer.

Default value: `true`

### enableMagnifier

Specify whether or not to display a corner magnifier on the canvas. This feature is primarily used to provide a zoomed-in preview of the selected area for more precise adjustments.

Default value: `true`

### enableSlide

Specify whether allow to slide the pages.

Default value: `true`

### enableAutoScrollForTextSelection

Specify whether to enable auto scrolling when selecting text if the cursor is around the edges of the viewer.

Default value: `true`

### scrollToLatest

Specify whether to scroll to latest page automatically when importing new pages.

Default value: `false`

### scrollDirection

Specify the scroll direction, supported values are `vertical`, `horizontal`.

Default value: `vertical`

### minZoom

The mininum zoom ratio in the viewer. The value range is [0.01, 64]. 

Default value: 0.01

Please notice `minZoom` cannot be larger than `maxZoom`.

### maxZoom

The maxinum zoom ratio in the viewer. The value range is [0.01, 64]. 

Default value: 64

Please notice `maxZoom` cannot be smaller than `minZoom`.

## Related

- [`EditViewerConstructorOptions`](https://www.dynamsoft.com/document-viewer/docs/api/interface/editviewerconstructoroptions.md)
