API Reference

Class

PdfFontInfo

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Modifiers sealed

Inspection information for one unique PDF font dictionary.

Inheritance

  • Object
  • PdfFontInfo

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

Properties

public Nullable<Int32> ObjectNumber { get; } #

Indirect object number, or null when the font dictionary is direct.

public Nullable<Int32> Generation { get; } #

Indirect object generation, or null when the font dictionary is direct.

public String BaseFontName { get; } #

BaseFont name exactly as declared by the PDF.

public String FamilyName { get; } #

Base font name with a valid six-letter subset prefix removed.

public String SubsetTag { get; } #

Six-letter PDF subset tag, or null when the BaseFont name is not subset-prefixed.

public Boolean IsSubset { get; } #

True when the BaseFont name has a valid six-letter subset prefix.

public String Subtype { get; } #

PDF font subtype, such as Type0, Type1, TrueType, or Type3.

public String Encoding { get; } #

Resolved encoding name used by the OfficeIMO.Pdf text decoder.

public Boolean HasToUnicode { get; } #

True when the font dictionary declares a ToUnicode entry.

public Boolean HasReadableToUnicodeMap { get; } #

True when the declared ToUnicode stream produced a readable character map.

public Int32 ToUnicodeMappingCount { get; } #

Number of mappings parsed from the ToUnicode character map.

public Int32 EncodingDifferenceCount { get; } #

Number of explicit Encoding Differences mappings.

public Boolean IsEmbedded { get; } #

True when a FontFile, FontFile2, or FontFile3 stream is present.

public String EmbeddedProgramSubtype { get; } #

Embedded font program kind, such as Type1, TrueType, OpenType, or Type1C.

public Nullable<Int32> EmbeddedProgramEncodedLength { get; } #

Encoded byte length of the embedded font program stream.

public PdfOpenTypeFontInfo EmbeddedOpenTypeInfo { get; } #

Parsed facts from an embedded OpenType or TrueType program, including the total glyph count and Unicode cmap coverage. This describes the embedded program; it does not claim every glyph was painted.

public Byte[] EmbeddedProgramBytes { get; } #

Decoded embedded font program bytes when explicitly requested and available within the configured limit. A defensive copy is returned on every access.

public Nullable<Int32> EmbeddedProgramDecodedLength { get; } #

Decoded embedded font program byte length when bytes were requested and retained.

public Boolean IsType3 { get; } #

True when the font is a Type3 font whose glyphs are PDF content streams.

public IReadOnlyList<PdfFontResourceReference> References { get; } #

Every page and nested resource path that declares this font dictionary.

public IReadOnlyList<PdfFontInspectionDiagnostic> Diagnostics { get; } #

Font-specific inspection diagnostics.