NativeElixirPdfUtilities.HtmlToPdf.PdfWriter (native_elixir_pdf_utilities v0.3.0)

View Source

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

This module is the low-level PDF byte writer used by the HTML renderer. It supports one or more pages containing built-in or embedded-font text boxes, simple rectangle fills, borders, URI link annotations, and PNG/JPEG image XObjects.

Summary

Functions

Renders paginated drawing instructions to a PDF binary.

Types

Functions

render(pages, opts \\ [])

@spec render([page()], [render_option()]) ::
  {:ok, binary()} | {:error, :invalid_pdf_input}

Renders paginated drawing instructions to a PDF binary.