Kreuzberg.PageInfo (kreuzberg v4.4.2)

Copy Markdown View Source

Metadata for an individual page/slide/sheet.

Matches the Rust PageInfo struct.

Fields

  • :number - Page number (1-indexed)
  • :title - Page title (usually for presentations)
  • :dimensions - Dimensions as {width, height} or nil
  • :image_count - Number of images on this page
  • :table_count - Number of tables on this page
  • :hidden - Whether this page is hidden
  • :is_blank - Whether this page is blank

Summary

Types

t()

@type t() :: %Kreuzberg.PageInfo{
  dimensions: {float(), float()} | nil,
  hidden: boolean() | nil,
  image_count: non_neg_integer() | nil,
  is_blank: boolean() | nil,
  number: non_neg_integer(),
  table_count: non_neg_integer() | nil,
  title: String.t() | nil
}

Functions

from_map(data)

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

to_map(info)

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