Skip to main content
Version: Version 5 beta

Type Alias: DocumentViewOptions

DocumentViewOptions: object

Configuration options for initializing a DocumentView.

These options allow you to customize the initial behavior and appearance of the document view.

Type declaration

accessibilityLayerEnabled?

optional accessibilityLayerEnabled: boolean

Enables or disables the accessibility layer for the document view. When enabled, the accessibility layer provides support for screen readers and other accessibility tools by creating an invisible HTML structure aligned with the text fragments on the page.

Default

false

dpi?

optional dpi: number

Specifies the DPI (Dots Per Inch) value for rendering the document. Higher DPI values result in higher resolution images, making them appear sharper and more detailed.

Default

96

fitMode?

optional fitMode: FitMode

Specifies the fit mode for the document view. Determines how the document pages are scaled to fit within the viewport.

Default

FitMode.None

pageLayoutMode?

optional pageLayoutMode: PageLayoutMode

Specifies the page layout mode for the document view. Determines how pages are arranged within the viewport (e.g., single column, two columns).

Default

PageLayoutMode.OneColumn