File Info
Access detailed metadata for the active document, synchronized in real-time with the viewer state.
File Info allows your application to retrieve technical metadata about the document currently being viewed. This includes physical dimensions, modification dates, and original source URLs.
By listening to metadata events, you can build custom UI elements such as property panels, breadcrumbs, or conditional toolbars that adapt to the active file's properties.
- Real-Time Updates: Metadata is emitted automatically on load and during file switches.
- Physical Dimensions: Access the logical width and height of CAD and PDF documents.
- Source Tracking: Maintain a direct link to the original file for auditing and export.
Listen for fileInfo and update your UI when metadata changes.
Listen for fileInfo
The viewer acts as the source of truth for document properties. Whenever the session state stabilizes, the viewer broadcasts the comprehensive metadata object.
1. Viewer Broadcasts Data
The viewer emits the fileInfo event after successfully parsing a document or switching the active tab.
2. Host Updates UI
Your application receives the payload and updates its local state or property panels accordingly.
Capture metadata updates and bind them to a property panel.
Use the interactive preview below to inspect the real-time payload emitted when you switch or open files.
Interactive Workbench
File info preview
Track the active file metadata emitted by the viewer in real time.
Keep metadata workflows aligned with file APIs.
- Viewer Setup: Canvas Iframe Initialization
- File Management: File Management
- File API: API References
