PdfElixide.Document.Span (pdf_elixide v0.7.0)

Copy Markdown View Source

A run of text sharing one text state — the same font, size, color, and text-state parameters — extracted from a PDF page, with its zero-based page index and bounding box.

Summary

Types

t()

@type t() :: %PdfElixide.Document.Span{
  bbox: PdfElixide.Geometry.Rect.t(),
  bold?: boolean(),
  char_spacing: float(),
  color: PdfElixide.Color.t(),
  font: String.t(),
  font_size: float(),
  font_weight: non_neg_integer(),
  heading_level: pos_integer() | nil,
  horizontal_scaling: float(),
  italic?: boolean(),
  mcid: non_neg_integer() | nil,
  monospace?: boolean(),
  page: non_neg_integer(),
  rotation: float(),
  text: String.t(),
  text_rise: float(),
  word_spacing: float()
}