Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfTextFallbackPlan

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

Describes how text can be split across embedded fonts before generated PDF rendering.

Inheritance

  • object
  • PdfTextFallbackPlan

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Methods

public IReadOnlyList<PdfTextRun> ToNamedTextRuns(IReadOnlyList<string> fontFamilyNames, PdfTextRun? styleTemplate = null) #

Converts a fully covered fallback plan into rich text runs assigned to registered named font families.

Parameters

fontFamilyNames System.Collections.Generic.IReadOnlyList<string> required
Registered named font families ordered the same way as the fallback candidates.
styleTemplate OfficeIMO.Pdf.PdfTextRun? = null optional
Optional run whose styling is copied to each generated text run.

Returns

IReadOnlyList<PdfTextRun> Text runs that can be used with rich paragraphs, lists, tables, panels, and canvas text boxes.
ToTextRuns 2 overloads
public IReadOnlyList<PdfTextRun> ToTextRuns(IReadOnlyList<PdfStandardFont> fontSlots, PdfTextRun? styleTemplate = null) #

Converts a fully covered fallback plan into rich text runs assigned to generated PDF font slots.

Parameters

fontSlots System.Collections.Generic.IReadOnlyList<OfficeIMO.Pdf.PdfStandardFont> required
Generated standard-font slots ordered the same way as the fallback candidates.
styleTemplate OfficeIMO.Pdf.PdfTextRun? = null optional
Optional run whose styling is copied to each generated text run.

Returns

IReadOnlyList<PdfTextRun> Text runs that can be used with rich paragraphs, lists, tables, panels, and canvas text boxes.
public IReadOnlyList<PdfTextRun> ToTextRuns(IReadOnlyDictionary<int, PdfStandardFont> fontSlots, PdfTextRun? styleTemplate = null) #

Converts a fully covered fallback plan into rich text runs assigned to generated PDF font slots.

Parameters

fontSlots System.Collections.Generic.IReadOnlyDictionary<int, OfficeIMO.Pdf.PdfStandardFont> required
Generated standard-font slots keyed by fallback candidate index.
styleTemplate OfficeIMO.Pdf.PdfTextRun? = null optional
Optional run whose styling is copied to each generated text run.

Returns

IReadOnlyList<PdfTextRun> Text runs that can be used with rich paragraphs, lists, tables, panels, and canvas text boxes.

Properties

public string OriginalText { get; } #

Original text used to create this fallback plan.

public IReadOnlyList<PdfTextFallbackSegment> Segments { get; } #

Contiguous text segments that can be rendered by one embedded font candidate.

public IReadOnlyList<PdfTextEncodingDiagnostic> Diagnostics { get; } #

Characters not covered by any candidate font, in source order.

public bool IsFullyCovered { get; } #

True when every non-layout text scalar is covered by one of the candidate fonts.