Table of Contents

Method GetFallbackFontFile

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

GetFallbackFontFile(PdfFontInfo)

Provides fallback font bytes for a non-embedded PDF font.

Stream GetFallbackFontFile(PdfFontInfo fontInfo)

Parameters

fontInfo PdfFontInfo

Describes the PDF font for which the library needs an eligible fallback font.

Returns

Stream

The bytes of an eligible fallback font.

Remarks

The fontInfo is never equal to null. This method must never return null.

The library will dispose of the returned stream.

The following fallback font formats are eligible:

  • PFB for Type1/MMF PDF fonts
  • TTF/OTF for TrueType and Type0 PDF fonts