PDF generation
Render HTML to a hosted PDF from a workflow (zitejs/pdf):
renderHtml({ html, filename? }) → { url, filename }. Max 25 MB.
File uploads
Upload a file from the frontend and get back a hosted URL:upload(data, filename?) takes a File, Blob, ArrayBuffer, or base64 data: URL. The filename is
required unless data is a File, and its extension sets the stored file type. A plain URL string is
stored as a text file, not fetched. Outside React, uploadFile({ data, filename }) → { fileUrl } does
the same.
Uploads run only in the browser. There is no server-side upload, so file data a workflow produces goes
back to the frontend to be uploaded. Store the URL in an attachments field’s
{ url, filename } shape.
Workspace links
ZiteMeta.getWorkspace() from zitejs/meta returns links into this workspace in Zite, for an
“Edit in Zite” button or a help page. Call it from a workflow:
editorUrl opens this app in the editor. Both URLs follow the workspace when it is copied, so don’t
hardcode them. Links into the live app itself use process.env.ZITE_APP_URL.