Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

PdfOpenTypeFontInspector

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

Provides dependency-free OpenType font inspection for PDF typography preflight.

Inheritance

  • Object
  • PdfOpenTypeFontInspector

Methods

public static PdfOpenTypeFontInfo Inspect(Byte[] fontData, String? fontName = null) #
Returns: PdfOpenTypeFontInfo

Parses OpenType table metadata and Unicode coverage from a single font program.

Parameters

fontData System.Byte[] requiredposition: 0
OpenType or TrueType font bytes.
fontName System.String? = null optionalposition: 1
Optional configured name used when the font does not contain a readable name table.

Returns

Parsed font metadata and Unicode coverage.

public static Boolean TryInspect(Byte[] fontData, out PdfOpenTypeFontInfo? info, out String? error, String? fontName = null) #
Returns: Boolean

Attempts to inspect OpenType metadata without throwing for unsupported or malformed font data.

Parameters

fontData System.Byte[] requiredposition: 0
info OfficeIMO.Pdf.PdfOpenTypeFontInfo? requiredposition: 1
error System.String? requiredposition: 2
fontName System.String? = null optionalposition: 3