NativeElixirPdfUtilities.HtmlToPdf.EmbeddedResource (native_elixir_pdf_utilities v1.1.0)

View Source

Loads authorized child HTML into an isolated document descriptor.

This is resource preparation, not viewport rendering. The normal HTML parser applies input policy and charges the existing cumulative HTML/node budgets. Document mappings and resolvers are deliberately not document sources.

Summary

Functions

Reads exact selected local bytes with an issued child scope and existing source limits.

Prevalidates and loads a child local HTML file or inline srcdoc without resolving mappings.

Reads an initial iframe/frame document once after authorization, retaining its exact bytes and issued source scope.

Loads selected local object HTML after authorization and MIME validation.

Types

Functions

load_file(source, mime, context, opts \\ [])

Reads exact selected local bytes with an issued child scope and existing source limits.

load_html(source, context, opts \\ [])

Prevalidates and loads a child local HTML file or inline srcdoc without resolving mappings.

load_initial(source, context, opts \\ [])

Reads an initial iframe/frame document once after authorization, retaining its exact bytes and issued source scope.

load_object_html(source, context, opts \\ [])

Loads selected local object HTML after authorization and MIME validation.