• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class PdfLayoutGlyph

Immutable glyph geometry and source metadata retained from PDF extraction.

Inheritance
object
PdfLayoutGlyph
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Document.Import.Pdf
Assembly: DRIT.Document.dll
Syntax
public sealed class PdfLayoutGlyph

Constructors

PdfLayoutGlyph(string, PdfLayoutRect, PdfLayoutPoint, PdfLayoutPoint, PdfLayoutPoint, string, PdfLayoutMatrix, PdfLayoutMatrix, string, int, string, int, int)

Initializes a new PdfLayoutGlyph from normalized PDF extraction data.

Declaration
public PdfLayoutGlyph(string id, PdfLayoutRect bounds, PdfLayoutPoint origin, PdfLayoutPoint baseline, PdfLayoutPoint advance, string text, PdfLayoutMatrix textMatrix, PdfLayoutMatrix ctm, string sourceId, int sourceOrder, string operatorName, int contentElementIndex, int operatorIndex)
Parameters
Type Name Description
string id
PdfLayoutRect bounds
PdfLayoutPoint origin
PdfLayoutPoint baseline
PdfLayoutPoint advance
string text
PdfLayoutMatrix textMatrix
PdfLayoutMatrix ctm
string sourceId
int sourceOrder
string operatorName
int contentElementIndex
int operatorIndex

PdfLayoutGlyph(string, PdfLayoutRect, PdfLayoutPoint, PdfLayoutPoint, string)

Initializes a new PdfLayoutGlyph from normalized PDF extraction data.

Declaration
public PdfLayoutGlyph(string id, PdfLayoutRect bounds, PdfLayoutPoint origin, PdfLayoutPoint advance, string text)
Parameters
Type Name Description
string id
PdfLayoutRect bounds
PdfLayoutPoint origin
PdfLayoutPoint advance
string text

Properties

Advance

Gets the glyph advance vector in page-space coordinates.

Declaration
public PdfLayoutPoint Advance { get; }
Property Value
Type Description
PdfLayoutPoint

Baseline

Gets the baseline point of the extracted glyph in page-space coordinates.

Declaration
public PdfLayoutPoint Baseline { get; }
Property Value
Type Description
PdfLayoutPoint

Bounds

Gets the normalized page-space bounds of the represented content.

Declaration
public PdfLayoutRect Bounds { get; }
Property Value
Type Description
PdfLayoutRect

CTM

Gets the current transformation matrix retained from PDF extraction.

Declaration
public PdfLayoutMatrix CTM { get; }
Property Value
Type Description
PdfLayoutMatrix

ContentElementIndex

Gets the source content-element index for this glyph.

Declaration
public int ContentElementIndex { get; }
Property Value
Type Description
int

Id

Gets the stable identifier assigned to this layout item.

Declaration
public string Id { get; }
Property Value
Type Description
string

Operator

Gets the PDF content-stream operator associated with the glyph.

Declaration
public string Operator { get; }
Property Value
Type Description
string

OperatorIndex

Gets the source operator index for this glyph.

Declaration
public int OperatorIndex { get; }
Property Value
Type Description
int

Origin

Gets the origin point of the extracted glyph in page-space coordinates.

Declaration
public PdfLayoutPoint Origin { get; }
Property Value
Type Description
PdfLayoutPoint

SourceId

Gets the source object identifier retained with this layout item.

Declaration
public string SourceId { get; }
Property Value
Type Description
string

SourceOrder

Gets the source order used to stabilize reconstruction.

Declaration
public int SourceOrder { get; }
Property Value
Type Description
int

Text

Identifies a text primitive in the layout projection.

Declaration
public string Text { get; }
Property Value
Type Description
string

TextMatrix

Gets the text transformation matrix retained from PDF extraction.

Declaration
public PdfLayoutMatrix TextMatrix { get; }
Property Value
Type Description
PdfLayoutMatrix
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX