Rendro.Protect.Adapter behaviour (Rendro v0.3.0)

Copy Markdown View Source

Behavior for artifact protection adapters.

A protection adapter takes a rendered %Rendro.Artifact{} and returns a new artifact-level PDF binary protected by an external tool or post-processing step.

Summary

Callbacks

protect(t, map)

@callback protect(Rendro.Artifact.t(), map()) :: {:ok, binary()} | {:error, term()}