Current section
Files
Jump to
Current section
Files
lib/xberg/page_structure.ex
# This file is auto-generated by alef — DO NOT EDIT.
# alef:hash:61b2c8938c132132f6ac987a5658fed582bea2f8248dbe1d25aa618e0ec0b375
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
defmodule Xberg.PageStructure do
@moduledoc """
Unified page structure for documents.
Supports different page types (PDF pages, PPTX slides, Excel sheets)
with character offset boundaries for chunk-to-page mapping.
"""
@typedoc "Unified page structure for documents."
@type t :: %__MODULE__{
total_count: non_neg_integer(),
unit_type: String.t() | nil,
boundaries: [Xberg.PageBoundary.t()] | nil,
pages: [Xberg.PageInfo.t()] | nil
}
defstruct total_count: 0,
unit_type: :page,
boundaries: nil,
pages: nil
end