Kreuzberg.PageStructure (kreuzberg v4.4.2)

Copy Markdown View Source

Page structure information for a document.

Matches the Rust PageStructure struct.

Fields

  • :total_count - Total number of pages/slides/sheets
  • :unit_type - Type of paginated unit ("page", "slide", "sheet")
  • :boundaries - Optional list of byte offset boundaries per page
  • :pages - Optional list of per-page metadata

Summary

Types

t()

@type t() :: %Kreuzberg.PageStructure{
  boundaries: [Kreuzberg.PageBoundary.t()] | nil,
  pages: [Kreuzberg.PageInfo.t()] | nil,
  total_count: non_neg_integer(),
  unit_type: String.t()
}

Functions

from_map(data)

@spec from_map(map()) :: t()

to_map(ps)

@spec to_map(t()) :: map()