# PdfFontInspectionOptions

Controls bounded inspection of font resources declared by PDF pages and nested Form XObjects.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`12511d2fa560` with working tree changes

**Source**

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

**Modifiers**

sealed

Controls bounded inspection of font resources declared by PDF pages and nested Form XObjects.

## Inheritance

- object
- PdfFontInspectionOptions

## Usage

Explore 1 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.

### Accepted by parameters 1

- Method [PdfDocumentResources.Fonts](/api/pdf/officeimo-pdf-pdfdocumentresources/#method-fonts-officeimo-pdf-pdffontinspectionoptions-officeimo-pdf-pdfloadoptions) parameter `inspectionOptions`

Filter members 

Show inherited

## Constructors

`public PdfFontInspectionOptions()` [#](#constructor-ctor)

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

## Inherited Methods

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

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from object

Returns

`int`

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

Inherited from object

Returns

`Type`

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

Inherited from object

Returns

`string?`

## Properties

`public bool InspectEmbeddedProgramMetadata { get; init; }` [#](#property-inspectembeddedprogrammetadata)

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

Parses bounded embedded OpenType and TrueType programs into [PdfFontInfo.EmbeddedOpenTypeInfo](/api/pdf/officeimo-pdf-pdffontinfo/). Default: true.

`public bool IncludeEmbeddedProgramBytes { get; init; }` [#](#property-includeembeddedprogrambytes)

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

Includes decoded embedded font program bytes in [PdfFontInfo.EmbeddedProgramBytes](/api/pdf/officeimo-pdf-pdffontinfo/). Disabled by default so inventory operations do not retain font programs unnecessarily.

`public int MaxEmbeddedProgramBytes { get; init; }` [#](#property-maxembeddedprogrambytes)

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

Maximum decoded bytes retained for one embedded font program. Default: 16 MiB.

`public int MaxToUnicodeBytes { get; init; }` [#](#property-maxtounicodebytes)

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

Maximum decoded bytes processed for one ToUnicode character map. Default: 4 MiB.

`public long MaxTotalDecodedFontBytes { get; init; }` [#](#property-maxtotaldecodedfontbytes)

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

Maximum aggregate decoded bytes processed across ToUnicode maps and embedded font programs. Default: 64 MiB.

`public int MaxFonts { get; init; }` [#](#property-maxfonts)

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

Maximum unique font dictionaries returned by one inspection. Default: 4,096.

`public int MaxResourceDepth { get; init; }` [#](#property-maxresourcedepth)

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

Maximum nested Form XObject resource depth. Default: 32.

`public int MaxResourceReferences { get; init; }` [#](#property-maxresourcereferences)

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

Maximum declared font references returned by one inspection. Default: 100,000.

`public int MaxFormResourceTraversals { get; init; }` [#](#property-maxformresourcetraversals)

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

Maximum nested Form XObject resource-context traversals performed by one inspection. Default: 10,000.

`public int MaxResourcePathCharacters { get; init; }` [#](#property-maxresourcepathcharacters)

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

Maximum characters retained in one resource path. Default: 4,096.

`public long MaxTotalResourcePathCharacters { get; init; }` [#](#property-maxtotalresourcepathcharacters)

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

Maximum aggregate resource-path characters visited by one inspection. Default: 4 MiB.

`public int MaxDiagnostics { get; init; }` [#](#property-maxdiagnostics)

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

Maximum diagnostics retained by one inspection. Default: 10,000.

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