NativeElixirPdfUtilities.HtmlToPdf.PdfWriter (native_elixir_pdf_utilities v0.6.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

error_reason()

@type error_reason() :: :invalid_pdf_input

page()

render_option()

Functions

render(pages, opts \\ [])

@spec render([page()], [render_option()]) ::
  {:ok, binary()}
  | {:error,
     {error_reason(), NativeElixirPdfUtilities.Diagnostics.diagnostic()}}

Renders paginated drawing instructions to a PDF binary.