NativeElixirPdfUtilities.HtmlToPdf.PdfWriter (native_elixir_pdf_utilities v0.5.1)
View SourcePDF 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
@type error_reason() :: :invalid_pdf_input
@type page() :: NativeElixirPdfUtilities.HtmlToPdf.Pagination.page()
@type render_option() :: NativeElixirPdfUtilities.HtmlToPdf.render_option()
Functions
@spec render([page()], [render_option()]) :: {:ok, binary()} | {:error, {error_reason(), NativeElixirPdfUtilities.Diagnostics.diagnostic()}}
Renders paginated drawing instructions to a PDF binary.