# OcrProcessFileNames

Safe temporary filename helpers shared by process-based OCR providers.

Class 

`OfficeIMO.Ocr.Process`

**Namespace**

`OfficeIMO.Ocr.Process`

**Assembly**

`OfficeIMO.Ocr.Process`

**Source revision**

`063fe3ee9839` with working tree changes

**Source**

[OcrProcessFileNames.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/OcrProcessFileNames.cs#L7)

**Modifiers**

static

Safe temporary filename helpers shared by process-based OCR providers.

## Inheritance

- object
- OcrProcessFileNames

Filter members 

Show inherited

## Methods

`public static string GetSafeExtension(string? fileName, string? mediaType)` [#](#method-getsafeextension-string-string)

[OcrProcessFileNames.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Ocr.Process/OcrProcessFileNames.cs#L7)

Returns a bounded, filesystem-safe extension for an OCR input.

Parameters

**fileName string? required**

**mediaType string? required**

Returns

`string`

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

<!-- PowerForge markdown artifact sha256:9090CA3627AA4ED2DA730ED371CBF4EAD5CB985ED9FE5204CD74B0C78735EE08 -->
