API Reference
PdfTextFallbackPlan
Describes how text can be split across embedded fonts before generated PDF rendering.
Inheritance
- Object
- PdfTextFallbackPlan
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
Accepted by parameters
Methods
public IReadOnlyList<TextRun> ToTextRuns(IReadOnlyList<PdfStandardFont> fontSlots, TextRun styleTemplate = null) #IReadOnlyList<TextRun>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}
- Generated standard-font slots ordered the same way as the fallback candidates.
- styleTemplate OfficeIMO.Pdf.TextRun = null
- 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<TextRun> ToTextRuns(IReadOnlyDictionary<Int32, PdfStandardFont> fontSlots, TextRun styleTemplate = null) #IReadOnlyList<TextRun>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}
- Generated standard-font slots keyed by fallback candidate index.
- styleTemplate OfficeIMO.Pdf.TextRun = null
- 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.
Inherited Methods
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.