Rendro.Adapters.Qpdf (Rendro v0.3.0)

Copy Markdown View Source

Optional runtime adapter for qpdf-based PDF protection.

qpdf is an external executable, not a Hex dependency. Rendro keeps it behind an artifact-first boundary so the core rendering pipeline stays pure Elixir.

Summary

Types

protect_opts()

@type protect_opts() :: %{
  :algorithm => :aes_256,
  :advisory_permissions => [Rendro.Protect.permission()],
  :open_password => String.t(),
  :owner_password => String.t(),
  optional(atom()) => term()
}

Functions

protect(artifact, opts)

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

Callback implementation for Rendro.Protect.Adapter.protect/2.