commands-and-functions_en.html
This is the “go here first” scripting catalog for people who need to know what can be automated.
| Group | Purpose | Examples |
|---|---|---|
| State setup | Establish input URLs, text, thumbnail sources, language, and UI-related state. | setDocument(), setThumbnail(), setLanguage() |
| Render control | Request live preview or export rendering from the canonical composition model. | render(), measure(), preview() |
| Output control | Export still images or package outputs at target resolutions. | exportImage(), exportPackage() |
| Inspection | Expose current state, readiness, failures, and diagnostics. | getState(), getRenderReadiness(), validate() |
setThumbnail({
mode: "image" | "url-art",
source: "https://example/image.png" | null,
fitMode: "contain" | "cover-with-protected-content" | "outpaint-horizontal",
altText: "optional descriptive text"
})setQr({
enabled: true,
content: "https://example.com",
position: "auto" | "top-right" | "custom",
layerPolicy: "dedicated"
})render({
target: "live" | "export",
resolution: { width: 8192, height: 4320 },
colorMode: "default",
language: "en"
})exportImage({
format: "png" | "jpeg",
qualityMode: "master" | "compact",
requireQrParity: true
})