Read more about SimplePDF Embed »
Join Our Discord
·
Follow us on Twitter
| Name | Type | Required | Description |
|---|---|---|---|
| ref | EmbedActions | No | Used for programmatic control of the editor (see Programmatic Control section) |
| mode | "inline" | "modal" | No (defaults to "modal") | Inline the editor or display it inside a modal |
| locale | "en" | "de" | "es" | "fr" | "it" | "nl" | "pt" | No (defaults to "en") | Language to display the editor in (ISO locale) |
| children | React.ReactElement | Yes in "modal" mode | Elements triggering the editor |
| companyIdentifier | string | No | Your SimplePDF portal. See Data Privacy & companyIdentifier for reserved values and data handling details. |
| baseDomain | string | No | Override the base domain for self-hosted deployments (e.g., "yourdomain.com"). Contact sales@simplepdf.com for enterprise self-hosting |
| context | Record<string, unknown> | No | Sent via webhooks |
| onEmbedEvent | (event: EmbedEvent) => Promise<void> | void |
No | Events sent by the Iframe |
| documentURL | string | No | Supports blob URLs, CORS URLs, and authenticated URLs (against the same origin). Available for inline mode only |
| style | React.CSSProperties | No | Available for inline mode only |
| className | string | No | Available for inline mode only |