Skip to content

PdfTextFragment Class

Definition

Namespace: Xfinium.Pdf.Content

Defines a fragment of text displayed on a Pdf page.

C#
public class PdfTextFragment : Object

Inheritance: Object → PdfTextFragment

Remarks

A text fragment is defined by a single 'show text' Pdf operator. All the glyphs in a text fragment share the same graphic attributes.

Properties

Name Description
Brush Gets the brush used for filling the text interior.
FontMetrics Gets the font metrics.
FontSize Gets the font size.
FragmentCorners Gets the coordinates of the text fragment corners.
FriendlyFontName Gets the friendly font name.
Glyphs Gets the collection of glyphs that compose this fragment.
MarkedContentIdentifier Gets the marked content identifier.
Pen Gets the pen used for stroking the text outline.
PostScriptFontName Gets the PostScript font name.
StructureElement Gets the structure element that includes this visual object.
Text Gets the text included in the fragment.
TransformedFontSize Gets the transformed font size.
TypographicFragmentCorners Gets the typographic coordinates of the text fragment corners.
TypographicVisualBounds Gets the typographic bounds of the text fragment.
VisualBounds Gets the bounds of the text fragment.

Methods

Name Description
ExtractTextFragment Extracts a text fragment from the current fragment starting at the specified position with the given length.
GetEmbeddedFontData Gets the embedded font data.
ToString Gets the text fragment as string.