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

Class PdfLayoutTextPrimitive

Normalized text primitive.

Inheritance
object
PdfLayoutPrimitive
PdfLayoutTextPrimitive
Inherited Members
PdfLayoutPrimitive.Id
PdfLayoutPrimitive.SourceId
PdfLayoutPrimitive.Kind
PdfLayoutPrimitive.SourceBounds
PdfLayoutPrimitive.Bounds
PdfLayoutPrimitive.IsSanitized
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 PdfLayoutTextPrimitive : PdfLayoutPrimitive

Constructors

PdfLayoutTextPrimitive(string, string, PdfRect, PdfLayoutRect, string, string, double, string, string, PdfLayoutColor, bool, IEnumerable<PdfLayoutGlyph>, int, bool)

Initializes a new PdfLayoutTextPrimitive from normalized PDF extraction data.

Declaration
public PdfLayoutTextPrimitive(string id, string sourceId, PdfRect sourceBounds, PdfLayoutRect bounds, string text, string fontFamily, double fontSize, string fontStyle, string fontWeight, PdfLayoutColor color, bool isSanitized, IEnumerable<PdfLayoutGlyph> glyphs = null, int sourceOrder = -1, bool glyphsComplete = true)
Parameters
Type Name Description
string id
string sourceId
PdfRect sourceBounds
PdfLayoutRect bounds
string text
string fontFamily
double fontSize
string fontStyle
string fontWeight
PdfLayoutColor color
bool isSanitized
IEnumerable<PdfLayoutGlyph> glyphs
int sourceOrder
bool glyphsComplete

Properties

Color

Gets the source text color.

Declaration
public PdfLayoutColor Color { get; }
Property Value
Type Description
PdfLayoutColor

FontFamily

Gets the source font family name.

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

FontSize

Gets the source font size in points.

Declaration
public double FontSize { get; }
Property Value
Type Description
double

FontStyle

Gets the source font style descriptor.

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

FontWeight

Gets the source font weight descriptor.

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

Glyphs

Gets the glyphs retained for this reconstructed text run.

Declaration
public IReadOnlyList<PdfLayoutGlyph> Glyphs { get; }
Property Value
Type Description
IReadOnlyList<PdfLayoutGlyph>

GlyphsComplete

Gets whether glyph-level extraction was complete for this item.

Declaration
public bool GlyphsComplete { get; }
Property Value
Type Description
bool

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
Back to top

DR-IT Software documentation

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

Generated by DocFX