Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OcrProcessFileNames

OfficeIMO.Ocr.Process

Namespace
OfficeIMO.Ocr.Process
Assembly
OfficeIMO.Ocr.Process
Source revision
063fe3ee9839 with working tree changes
Modifiers
static

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

Inheritance

  • object
  • OcrProcessFileNames

Methods

public static string GetSafeExtension(string? fileName, string? mediaType) #

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

Parameters

fileName string? required
mediaType string? required

Returns

string