API Reference

Cmdlet

Get-OfficeDocumentDetection

Namespace PSWriteOffice
Inputs
System.String
Outputs
OfficeIMO.Reader.ReaderDetectionResult

Detects a document kind from extension and bounded content evidence.

Remarks

Detects a document kind from extension and bounded content evidence.

Examples

Authored help example

Inspect the real content type of a document.

PS>


Get-OfficeDocumentDetection -Path .\upload.bin -Mode PreferContent
        

Returns the selected kind, confidence, media type, and evidence used by OfficeIMO.Reader.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Get-OfficeDocumentDetection [-MaxContainerEntries <Nullable`1>] [-MaxProbeBytes <Nullable`1>] [-Mode <ExtensionOnly|ContentWhenUnknown|PreferContent>] [-NoContainerInspection] -Path <String> [-Reader <OfficeDocumentReader>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

MaxContainerEntries Nullable`1 optionalposition: namedpipeline: False
Maximum archive entries inspected while classifying container formats.
MaxProbeBytes Nullable`1 optionalposition: namedpipeline: False
Maximum prefix bytes inspected for signatures and text markers.
Mode ReaderDetectionMode optionalposition: namedpipeline: Falsevalues: 3
Policy used to combine extension and content evidence.
Possible values: ExtensionOnly, ContentWhenUnknown, PreferContent
NoContainerInspection SwitchParameter optionalposition: namedpipeline: False
Skip structural inspection of ZIP-based containers.
Path String requiredposition: 0pipeline: True (ByValue)
Path to inspect.
Reader OfficeDocumentReader optionalposition: namedpipeline: False

Outputs

OfficeIMO.Reader.ReaderDetectionResult