(this page was created automatically. In case of formatting issues, please visit the official Wiki Page)

Document Viewer

Overview

Example Document Viewer

Specs

Tokens

Token Description
displayName Display name shown in the structure panel.
title Title text displayed above the document viewer (supports multiple languages).
originalSize Shows the document in its original dimensions when true; otherwise scales to fit.
allowSelectText Allows users to select and copy text from the document when enabled.
paddingClass Spacing around the component via CSS classes.
dataSourceId Data source ID used to retrieve the PDF document.
getEntityCollectionHttpRequestParametersMap HTTP parameters mapping used when fetching the document.
visibilityPolicySetId Policy set ID controlling component visibility.
displayConditions Rules that determine when the component is shown or hidden.
id Unique identifier for programmatic access.
dataTestId Testing hook ID for automated tests.
enableAsHotspot Enables this component as a guided tour hotspot.
guidedTourHotSpotTitle Title for the guided tour hotspot (supports translations).
guidedTourHotSpotDescription Description for the guided tour hotspot (supports translations).

Structure

(Configured in Visual Properties)

(Configured in Datasource Properties)

(Configured in General Properties)

(Configured in Visibility Properties)

Structure of the Document Viewer

Styling

(Configured in Visual Properties)

Tests

(Configured in Testing Hooks Properties)

Authorization

(Configured in Authorization Properties)

Links

Guidelines

Usage

Sizing & Layout

States & Feedback

Data-Driven / Conditional Behavior

Visibility & Authorization

Content & Localization

Dos & Don’ts

Do Don’t Article setting(s)
Localize the title so users understand what they’re viewing. Hard-code an English-only title. title
Preserve exact layout for formal documents. Force-fit precise layouts that become blurry or misaligned. originalSize
Disable text selection for sensitive PDFs. Leave selection on when copying must be prevented. allowSelectText
Add spacing using the component’s own token. Hack spacing with external CSS not controlled by the component. paddingClass
Hide the viewer until a document is available. Show an empty/blank frame. displayConditions
Hide confidential documents from unauthorized users. Show the component and rely on the document to say “no access.” visibilityPolicySetId
Use localized copy for guided tours. Show untranslated hotspot text. enableAsHotspot, guidedTourHotSpotTitle, guidedTourHotSpotDescription

Accessibility