NativeElixirPdfUtilities.HtmlToPdf.Pagination (native_elixir_pdf_utilities v0.3.0)

View Source

Pagination stage for the native HTML-to-PDF renderer.

Milestone 7 splits layout output into deterministic PDF pages with page margins, automatic page breaks, manual page breaks, unbroken flow units, and repeated table headers.

Summary

Functions

Splits a layout tree into PDF pages.

Types

page()

@type page() :: %{size: {float(), float()}, boxes: [term()]}

render_option()

Functions

paginate(layout_tree, opts \\ [])

@spec paginate(term(), [render_option()]) ::
  {:ok, [page()]} | {:error, :invalid_layout}

Splits a layout tree into PDF pages.