/docs/getting-started/viewer-session
Canvas Session
Start a document canvas session with a supported file loading message.
Send view after the iframe loads to open a publicly accessible file URL.
URL payload shape
Use viewAny when you need to provide file metadata. displayName must include the file extension.
URL payload with metadata
Use viewFile when the document comes from a browser file input. The payload is the actual File object.
Local file payload
Post the view message from the host once the iframe reports load.
Send after iframe load
