# OfficeDocumentReaderBuilderMhtmlExtensions

Adds MIME HTML archive support to an OfficeIMO Reader builder.

Class 

`OfficeIMO.Reader.Email`

**Namespace**

`OfficeIMO.Reader.Email`

**Assembly**

`OfficeIMO.Reader.Email`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeDocumentReaderBuilderMhtmlExtensions.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Reader.Email/OfficeDocumentReaderBuilderMhtmlExtensions.cs#L17)

**Modifiers**

static

Adds MIME HTML archive support to an OfficeIMO Reader builder.

## Inheritance

- object
- OfficeDocumentReaderBuilderMhtmlExtensions

Filter members 

Show inherited

## Methods

`public static OfficeDocumentReaderBuilder AddMhtmlHandler(OfficeDocumentReaderBuilder builder, ReaderHtmlOptions? htmlOptions = null, bool replaceExisting = false)` [#](#method-addmhtmlhandler-officeimo-reader-officedocumentreaderbuilder-officeimo-reader-html-readerhtmloptions-boolean)

[OfficeDocumentReaderBuilderMhtmlExtensions.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Reader.Email/OfficeDocumentReaderBuilderMhtmlExtensions.cs#L17)

Adds MHT and MHTML ingestion backed by OfficeIMO.Mhtml and the HTML projection.

Parameters

**builder OfficeIMO.Reader.OfficeDocumentReaderBuilder required**

**htmlOptions OfficeIMO.Reader.Html.ReaderHtmlOptions? = null optional**

**replaceExisting bool = false optional**

Returns

`OfficeDocumentReaderBuilder`

## 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?`

## Fields

`public const string HandlerId` [#](#field-handlerid)

[OfficeDocumentReaderBuilderMhtmlExtensions.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Reader.Email/OfficeDocumentReaderBuilderMhtmlExtensions.cs#L8)

Stable MHTML handler identifier.

Value: `officeimo.reader.mhtml`

`public const long DefaultMaxInputBytes` [#](#field-defaultmaxinputbytes)

[OfficeDocumentReaderBuilderMhtmlExtensions.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Reader.Email/OfficeDocumentReaderBuilderMhtmlExtensions.cs#L10)

Default maximum MHTML input size accepted by the aggregate reader.

Value: `67108864`

<!-- PowerForge markdown artifact sha256:811B38EFD8C03D3D76EC9E40C84498D300D2B4699F59FD801C6CBEA1C67348D1 -->
