# PdfFontInspectionDiagnosticCode

Stable diagnostic codes for PDF font inspection and text decoding.

Enum 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`12511d2fa560` with working tree changes

**Source**

[PdfFontInspection.cs:79](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Model/PdfFontInspection.cs#L79)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Stable diagnostic codes for PDF font inspection and text decoding.

## Inheritance

- Enum
- PdfFontInspectionDiagnosticCode

## Usage

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

- Property [PdfFontInspectionDiagnostic.Code](/api/pdf/officeimo-pdf-pdffontinspectiondiagnostic/#property-code)
- Field [PdfFontInspectionDiagnosticCode.CyclicResourceGraph](/api/pdf/officeimo-pdf-pdffontinspectiondiagnosticcode/#field-cyclicresourcegraph)
- Field [PdfFontInspectionDiagnosticCode.EmbeddedProgramTotalLimitExceeded](/api/pdf/officeimo-pdf-pdffontinspectiondiagnosticcode/#field-embeddedprogramtotallimitexceeded)
- Field [PdfFontInspectionDiagnosticCode.EmbeddedProgramUnavailable](/api/pdf/officeimo-pdf-pdffontinspectiondiagnosticcode/#field-embeddedprogramunavailable)
- Field [PdfFontInspectionDiagnosticCode.FontLimitExceeded](/api/pdf/officeimo-pdf-pdffontinspectiondiagnosticcode/#field-fontlimitexceeded)
- Field [PdfFontInspectionDiagnosticCode.FormResourceTraversalLimitExceeded](/api/pdf/officeimo-pdf-pdffontinspectiondiagnosticcode/#field-formresourcetraversallimitexceeded)
- Field [PdfFontInspectionDiagnosticCode.MissingBaseFont](/api/pdf/officeimo-pdf-pdffontinspectiondiagnosticcode/#field-missingbasefont)
- Field [PdfFontInspectionDiagnosticCode.MissingFontResource](/api/pdf/officeimo-pdf-pdffontinspectiondiagnosticcode/#field-missingfontresource)
- Field [PdfFontInspectionDiagnosticCode.MissingToUnicode](/api/pdf/officeimo-pdf-pdffontinspectiondiagnosticcode/#field-missingtounicode)
- Field [PdfFontInspectionDiagnosticCode.ResourceDepthExceeded](/api/pdf/officeimo-pdf-pdffontinspectiondiagnosticcode/#field-resourcedepthexceeded)
- Field [PdfFontInspectionDiagnosticCode.ResourceReferenceLimitExceeded](/api/pdf/officeimo-pdf-pdffontinspectiondiagnosticcode/#field-resourcereferencelimitexceeded)
- Field [PdfFontInspectionDiagnosticCode.ToUnicodeLimitExceeded](/api/pdf/officeimo-pdf-pdffontinspectiondiagnosticcode/#field-tounicodelimitexceeded)
- Field [PdfFontInspectionDiagnosticCode.ToUnicodeTotalLimitExceeded](/api/pdf/officeimo-pdf-pdffontinspectiondiagnosticcode/#field-tounicodetotallimitexceeded)
- Field [PdfFontInspectionDiagnosticCode.UnmappableText](/api/pdf/officeimo-pdf-pdffontinspectiondiagnosticcode/#field-unmappabletext)
- Field [PdfFontInspectionDiagnosticCode.UnreadableEmbeddedOpenTypeProgram](/api/pdf/officeimo-pdf-pdffontinspectiondiagnosticcode/#field-unreadableembeddedopentypeprogram)
- Field [PdfFontInspectionDiagnosticCode.UnreadableToUnicode](/api/pdf/officeimo-pdf-pdffontinspectiondiagnosticcode/#field-unreadabletounicode)

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

`public override bool Equals(object? obj)` [#](#method-equals-object)

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

`public override int GetHashCode()` [#](#method-gethashcode)

Inherited from Enum

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

`public override string ToString()` [#](#method-tostring)

Inherited from Enum

Returns

`string`

`public string ToString(string? format)` [#](#method-tostring-string)

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const PdfFontInspectionDiagnosticCode MissingBaseFont` [#](#field-missingbasefont)

[PdfFontInspection.cs:81](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Model/PdfFontInspection.cs#L81)

A font dictionary did not declare a BaseFont name.

Value: `0`

`public const PdfFontInspectionDiagnosticCode MissingToUnicode` [#](#field-missingtounicode)

[PdfFontInspection.cs:83](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Model/PdfFontInspection.cs#L83)

A font dictionary did not declare a ToUnicode mapping.

Value: `1`

`public const PdfFontInspectionDiagnosticCode UnreadableToUnicode` [#](#field-unreadabletounicode)

[PdfFontInspection.cs:85](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Model/PdfFontInspection.cs#L85)

A declared ToUnicode mapping could not be decoded into a readable character map.

Value: `2`

`public const PdfFontInspectionDiagnosticCode EmbeddedProgramUnavailable` [#](#field-embeddedprogramunavailable)

[PdfFontInspection.cs:87](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Model/PdfFontInspection.cs#L87)

An embedded font program could not be decoded within the configured limit.

Value: `3`

`public const PdfFontInspectionDiagnosticCode UnreadableEmbeddedOpenTypeProgram` [#](#field-unreadableembeddedopentypeprogram)

[PdfFontInspection.cs:89](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Model/PdfFontInspection.cs#L89)

An embedded OpenType or TrueType program was decoded but its table directory could not be inspected.

Value: `4`

`public const PdfFontInspectionDiagnosticCode FontLimitExceeded` [#](#field-fontlimitexceeded)

[PdfFontInspection.cs:91](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Model/PdfFontInspection.cs#L91)

The configured unique-font limit stopped further inspection.

Value: `5`

`public const PdfFontInspectionDiagnosticCode ResourceReferenceLimitExceeded` [#](#field-resourcereferencelimitexceeded)

[PdfFontInspection.cs:93](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Model/PdfFontInspection.cs#L93)

The configured font-reference limit stopped further inspection.

Value: `6`

`public const PdfFontInspectionDiagnosticCode ResourceDepthExceeded` [#](#field-resourcedepthexceeded)

[PdfFontInspection.cs:95](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Model/PdfFontInspection.cs#L95)

The configured nested Form XObject depth stopped further traversal.

Value: `7`

`public const PdfFontInspectionDiagnosticCode CyclicResourceGraph` [#](#field-cyclicresourcegraph)

[PdfFontInspection.cs:97](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Model/PdfFontInspection.cs#L97)

A cyclic Form XObject resource path was detected and stopped.

Value: `8`

`public const PdfFontInspectionDiagnosticCode EmbeddedProgramTotalLimitExceeded` [#](#field-embeddedprogramtotallimitexceeded)

[PdfFontInspection.cs:99](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Model/PdfFontInspection.cs#L99)

The aggregate embedded font program decode allowance was exhausted.

Value: `9`

`public const PdfFontInspectionDiagnosticCode FormResourceTraversalLimitExceeded` [#](#field-formresourcetraversallimitexceeded)

[PdfFontInspection.cs:101](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Model/PdfFontInspection.cs#L101)

The configured Form XObject resource-context traversal limit stopped further inspection.

Value: `10`

`public const PdfFontInspectionDiagnosticCode ToUnicodeLimitExceeded` [#](#field-tounicodelimitexceeded)

[PdfFontInspection.cs:103](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Model/PdfFontInspection.cs#L103)

A declared ToUnicode mapping exceeded the configured per-map decoded-byte limit.

Value: `11`

`public const PdfFontInspectionDiagnosticCode ToUnicodeTotalLimitExceeded` [#](#field-tounicodetotallimitexceeded)

[PdfFontInspection.cs:105](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Model/PdfFontInspection.cs#L105)

A declared ToUnicode mapping was not decoded because the aggregate font-stream allowance was exhausted.

Value: `12`

`public const PdfFontInspectionDiagnosticCode MissingFontResource` [#](#field-missingfontresource)

[PdfFontInspection.cs:107](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Model/PdfFontInspection.cs#L107)

Shown text references a font resource that could not be resolved.

Value: `13`

`public const PdfFontInspectionDiagnosticCode UnmappableText` [#](#field-unmappabletext)

[PdfFontInspection.cs:109](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Model/PdfFontInspection.cs#L109)

Shown character codes could not be mapped to Unicode and the logical run was omitted.

Value: `14`

<!-- PowerForge markdown artifact sha256:BD6D7E3497DCBA5F10A29B92912B492BA1CFB684B22343B6778C8A5B8D9037F4 -->
