Project

PSWriteOffice

PowerShell document automation across Word, Excel, PowerPoint, PDF, Reader, Confluence, Visio, and open text formats.

Stars 165
Forks 15
PowerShell Gallery downloads 158,661
Release v3.0.8
Language: C# Updated: 2026-10-12

API Reference

Cmdlet

Get-OfficeConversionRoute

Namespace PSWriteOffice
Inputs
System.String[]
Outputs
OfficeIMO.OfficeConversionCapability

Lists conversion contracts from the installed OfficeIMO catalog and their availability for PSWriteOffice batch PDF export.

Remarks

Each row retains the owning package, API, input kind, fidelity, support evidence, text-formatting contract and known limitations. PdfBatchSupported describes Export-OfficeDocumentPdf in the current host. Other routes may have format-specific cmdlets or .NET APIs; a catalog entry alone does not establish that a converter, credentials, fonts or optional providers are ready for a particular input.

Examples

Authored help example

Inspect a Word-to-PDF contract before converting documents.

PS>


Get-OfficeConversionRoute -SourceExtension docx -TargetExtension pdf | Format-List *
        

Extension filters accept a leading dot and compare without regard to case.

Find routes available to batch PDF export in this host.

PS>


Get-OfficeConversionRoute -PdfBatch | Select-Object Id, SourceExtensions, PackageId, Fidelity, KnownLimitations
        

Batch PDF export requires PowerShell 7.4 or newer. Windows PowerShell 5.1 can inspect the catalog and use supported single-file commands.

Inspect several route identifiers from the pipeline.

PS>


'docx-pdf', 'pdf-docx' | Get-OfficeConversionRoute
        

The pipeline also accepts objects with an Id property.

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-OfficeConversionRoute [-Id <String[]>] [-PdfBatch] [-SourceExtension <String>] [-TargetExtension <String>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Id String[] optionalposition: namedpipeline: True (ByValue, ByPropertyName)
Exact route identifiers, for example docx-pdf or pdf-docx. Unknown identifiers return no rows.
PdfBatch SwitchParameter optionalposition: namedpipeline: False
Return only routes supported by Export-OfficeDocumentPdf batch parameter sets in the current host.
SourceExtension String optionalposition: namedpipeline: False
Accepted source extension, with or without a leading dot.
TargetExtension String optionalposition: namedpipeline: False
Destination extension, with or without a leading dot.

Outputs

OfficeIMO.OfficeConversionCapability