Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

Choose a conversion route

Edit on GitHub

Use PSWriteOffice to inspect supported format pairs, conversion fidelity, owning APIs, known limitations, and batch PDF support in your host.

Use Get-OfficeDocumentCapability -Conversion to inspect the conversion contracts shipped with the installed OfficeIMO engine. A route describes a source and destination pair, its owning package and API, expected fidelity, support evidence, text formatting, and known limitations.

Get-OfficeDocumentCapability -Conversion -From docx -To pdf |
    Format-List Id, PackageId, Api, Fidelity, SupportLevel,
        SupportEvidence, TextFormattingContract, KnownLimitations

Extension filters accept docx or .docx and compare without regard to case. Combine them with -Id to select an exact route. Unknown identifiers return no rows.

Choose the PowerShell operation

Use -Executable to select routes registered by the conversion runner in the current host. Windows PowerShell 5.1 can inspect the catalog; general conversion jobs require PowerShell 7.4 or newer.

Get-OfficeDocumentCapability -Conversion -Executable -To Pdf |
    Select-Object Id, SourceExtensions, PackageId, Fidelity, KnownLimitations

$route = Get-OfficeDocumentCapability -Conversion -Id docx-pdf
$route.KnownLimitations
$report = Convert-OfficeDocument -Path ./Review.docx -To Pdf -OutputPath ./Review.pdf
$report.Diagnostics

Catalog support and current-host execution are separate. A listed route does not establish that an optional provider, password, or individual input meets its requirements.

Run a general conversion job

Get-OfficeDocumentCapability -Conversion -Executable filters to routes registered by the shared runner in this host. Convert-OfficeDocument uses that runner for one destination or a selected-file/directory batch, including registered first-party iWork routes.

Get-OfficeDocumentCapability -Conversion -Executable -From pdf |
    Select-Object Id, TargetExtension, Fidelity, KnownLimitations
Convert-OfficeDocument -Path ./Review.pdf -To Word -OutputPath ./Review.docx
Get-ChildItem ./reviews -Filter *.pdf |
    Convert-OfficeDocument -OutputDirectory ./editable -To Word

Each completed file emits its report. Existing output is replaced by default; use -NoClobber to preserve destinations or -AutoRename to select another filename. Pass native format options through -Options, use -FailOnLoss to reject reported reductions, and combine -CheckpointPath with -Resume for resumable directory jobs.

Data formats

JSON, JSON Lines, YAML, TOML, XML, CSV, TSV, and Excel worksheets convert between each other through the same command. The routes are listed like any other:

Get-OfficeDocumentCapability -Conversion -Executable -From json |
    Select-Object Id, TargetExtension, Fidelity
Id         TargetExtension Fidelity
--         --------------- --------
json-jsonl .jsonl          Semantic
json-xml   .xml            Semantic
json-csv   .csv            Semantic
json-xlsx  .xlsx           Semantic
json-yaml  .yaml           Semantic
json-toml  .toml           Semantic
json-tsv   .tsv            Semantic

Semantic fidelity means the data survives but formatting such as comments or quoting does not. Anything the target cannot hold, such as a null in TOML or nesting in CSV, appears in the report's diagnostics. See Configuration files and data conversion for the options and the loss report.

Check the result

The catalog describes the installed engine's contracts. It does not probe optional providers, fonts, credentials, encryption passwords, or an individual input document. Test representative files and inspect the generated output before relying on a conversion workflow. Review conversion warnings when fidelity matters.

For extraction, use Get-OfficeDocumentCapability and the Reader guide. Reader support, conversion support, editable document authoring, and batch export are separate operations.

See PDF automation for export options and automation patterns for repeatable document jobs.

Example source