AshTypst.Document (ash_typst v0.2.0)

Copy Markdown View Source

Wrapper struct for rendered Typst documents.

This is the return type of all render actions declared via the AshTypst.Resource extension. The data field contains the raw binary output (PDF, SVG string, or HTML string) and format indicates which export was used.

Summary

Types

t()

@type t() :: %AshTypst.Document{
  data: binary(),
  format: :pdf | :svg | :html,
  page_count: non_neg_integer(),
  warnings: [AshTypst.Diagnostic.t()]
}