
| 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). |
(Configured in Visual Properties)
{"en-US": "Contract Details", "de-DE": "Vertragsdetails"} ensures proper localization of the title based on the user's language settings. This title helps users understand what document they're viewing.(Configured in Datasource Properties)
"api/documents/contractPdf" connects the viewer to the specific API endpoint that serves the contract document. {"documentId": "context.selectedDocumentId"} passes the selected document ID from the context to the API request.(Configured in General Properties)
(Configured in Visibility Properties)

(Configured in Visual Properties)
"p-4" adds medium padding on all sides of the component to improve visual spacing within its container.(Configured in Testing Hooks Properties)
"contractDocumentViewer" enables targeted manipulation of this specific document viewer component."contract-document-view" allows test scripts to reliably locate this component for automated testing scenarios.{"en-US": "Document Viewer", "de-DE": "Dokumentenbetrachter"} provides clear identification during guided tours.{"en-US": "View documents directly in the application", "de-DE": "Dokumente direkt in der Anwendung anzeigen"} provides detailed instructions during guided tours.(Configured in Authorization Properties)
"documentAccessPolicy" restricts the document viewer visibility to users with document access privileges according to the specified policy.originalSize: true (e.g., contracts), or fit to available space with originalSize: false for general reading. allowSelectText (enable for research/citation workflows; disable for view-only or sensitive PDFs). enableAsHotspot, guidedTourHotSpotTitle, and guidedTourHotSpotDescription (all translatable).paddingClass (e.g., “p-4”), using only the component’s own spacing token. originalSize to govern scaling; when false, the viewer scales to fit its allotted area; when true, it uses the document’s native dimensions.allowSelectText (enabled/disabled). displayConditions (e.g., check a bound documentId or fetch status that the component can “see”). displayConditions mutually exclusive and tied to stable values (e.g., only switch to “show” after required parameters are present).visibilityPolicySetId so the viewer is hidden for unauthorized users. displayConditions for contextual visibility (e.g., only show after a selection) and reserve visibilityPolicySetId for permission-based gating.title (language map). guidedTourHotSpotTitle and guidedTourHotSpotDescription. title concise to avoid truncation in tight spaces; use the document itself for detailed naming, not the title line.| 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 |
originalSize), text-selection capability (allowSelectText), and localized textual surfaces (title, guidedTourHotSpotTitle, guidedTourHotSpotDescription).title, guidedTourHotSpotTitle, and guidedTourHotSpotDescription match the user’s language so assistive technologies announce text in the correct voice. allowSelectText; if content is sensitive, disable it and communicate restrictions via the title or the PDF content itself. originalSize only when it materially increases legibility for dense PDFs; otherwise keep scaling enabled to minimize horizontal scrolling for low-vision users.