# `AshTypst.Document`
[🔗](https://github.com/frankdugan3/ash_typst/blob/v0.4.0/lib/ash_typst/document.ex#L1)

Wrapper struct for rendered Typst documents.

This is the return type of all render actions declared via the `AshTypst.Resource`
extension. The `format` field indicates which export was used and determines the
shape of `data`:

  * `:pdf` — PDF binary
  * `:svg` — SVG string
  * `:html` — HTML string
  * `:bundle` — a map of relative path to rendered binary content

---

*Consult [api-reference.md](api-reference.md) for complete listing*
