Appearance
Document Viewer
PDFs and images from the project assets, such as manuals, procedures and drawings.
In Studio
In Studio, double-click Document Viewer in the Components category of the Components panel. It is added to the open view, where you can drag it into place.
When to use
Use Document Viewer to put a manual or SOP next to the equipment it describes. Pick page for one document, library for a list to choose from, or link for a button that opens the document in a window.
Properties
| Property | Type | Default | Description |
|---|---|---|---|
| Variant | page, library, link | page | page (default, one document shown page by page), library (a list of documents that opens into the page view, with a Back button) or link (a pill that opens the document in a modal). |
| File | String | (none) | The project asset file name, a PDF or an image uploaded under Assets. A missing or unreadable file says so on screen. |
| Page | Number | 1 | The page the page view opens at. Default 1. |
| Documents (file|Title, comma-sep) | String | (none) | Library only: file|Title entries, comma-separated. Blank lists every PDF and image asset in the project. |
| Label | String | Manual | The text on the link pill. Blank shows Document. |
Binding
This component has no single value binding.
No value binding. PDFs are drawn on a canvas and images are shown directly. The gateway serves PDFs up to 20 MiB. The current page, the page count numPages and the open file are published as live values.