View Source Mudbrick.Page (mudbrick v0.7.0)

Summary

Functions

Returns predefined page sizes in points.

Functions

@spec size(name :: atom()) :: Mudbrick.coords()

Returns predefined page sizes in points.

Examples

iex> Mudbrick.Page.size(:a4)
{597.6, 842.4}

iex> Mudbrick.Page.size(:a3)
{842.4, 1188.0}

iex> Mudbrick.Page.size(:letter)
{612.0, 792}