A pure data carrier containing the rendered PDF bytes, a deterministic hash, and structured diagnostics from the render pipeline.
This is the primary boundary struct for async and ecosystem operations.
Summary
Functions
Creates a new Artifact from the generated binary and the final Document. Hashes the binary using SHA-256 for deterministic caching and verification.
Wraps a transformed binary in a new artifact while preserving diagnostics and merging metadata from the source artifact.
Types
Functions
@spec new(binary(), Rendro.Document.t(), map()) :: t()
Creates a new Artifact from the generated binary and the final Document. Hashes the binary using SHA-256 for deterministic caching and verification.
Wraps a transformed binary in a new artifact while preserving diagnostics and merging metadata from the source artifact.