PdfEx.Model.Glyph (pdf_ex v0.1.0)

Copy Markdown View Source

A positioned glyph in the page IDM (fix G).

id is the opaque stable UID ("p<page_obj_id>_g<seq>"), assigned by PdfEx.Glyphs.index/1nil straight out of the interpreter. show_op_index/glyph_index locate the glyph inside its content stream (0-based show-operator ordinal, character ordinal within that operator). font_ref is the page-resource font key as a binary (never an atom — untrusted input).

Summary

Types

t()

@type t() :: %PdfEx.Model.Glyph{
  char: String.t(),
  char_code: non_neg_integer(),
  font_ref: binary() | nil,
  font_size: float(),
  glyph_index: non_neg_integer(),
  id: binary() | nil,
  show_op_index: non_neg_integer(),
  x: float(),
  y: float()
}