Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

PdfTextFallbackPlan

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

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

Inheritance

  • Object
  • PdfTextFallbackPlan

Usage

Explore 2 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

Accepted by parameters 1

Methods

public IReadOnlyList<PdfTextRun> ToNamedTextRuns(IReadOnlyList<String> fontFamilyNames, PdfTextRun? styleTemplate = null) #
Returns: IReadOnlyList<PdfTextRun>

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

Parameters

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

Returns

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) #
Returns: IReadOnlyList<PdfTextRun>

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> requiredposition: 0
Generated standard-font slots ordered the same way as the fallback candidates.
styleTemplate OfficeIMO.Pdf.PdfTextRun? = null optionalposition: 1
Optional run whose styling is copied to each generated text run.

Returns

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

public IReadOnlyList<PdfTextRun> ToTextRuns(IReadOnlyDictionary<Int32, PdfStandardFont> fontSlots, PdfTextRun? styleTemplate = null) #
Returns: IReadOnlyList<PdfTextRun>

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

Parameters

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

Returns

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 Boolean IsFullyCovered { get; } #

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