# Read and convert documents

Read and convert documents on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice)

Stars**728**

Forks**84**

Open issues**6**

PowerShell Gallery downloads**5275783**

Release**v3.6.2**

Language: C# Updated: 2026-11-24

Curated Examples

Use PSWriteOffice for Reader, Markdown, CSV, Word conversion, and RTF bridge workflows.

PSWriteOffice is useful after a file already exists. Reader cmdlets inspect documents, Markdown and CSV cmdlets handle scripting-friendly formats, and Word/RTF bridges keep common conversion paths in PowerShell.

This page collects small patterns from the Reader, Markdown, CSV, Word conversion, and RTF examples.

## Example

```powershell
Import-Module PSWriteOffice

$outputDirectory = Join-Path $PSScriptRoot 'Output'
$null = New-Item -ItemType Directory -Path $outputDirectory -Force
$markdownPath = Join-Path $outputDirectory 'Summary.md'
$csvPath = Join-Path $outputDirectory 'Status.csv'
$wordPath = Join-Path $outputDirectory 'Summary.docx'
$rtfPath = Join-Path $outputDirectory 'Summary.rtf'
$roundTripMarkdownPath = Join-Path $outputDirectory 'Summary.from-rtf.md'

New-OfficeMarkdown -Path $markdownPath {
    MarkdownHeading -Level 1 -Text 'Status'
    MarkdownParagraph -Text 'Generated by PSWriteOffice.'
    MarkdownTable -InputObject @(
        [PSCustomObject]@{ Area = 'Docs'; State = 'Ready' }
        [PSCustomObject]@{ Area = 'Examples'; State = 'Review' }
    )
}

@(
    [PSCustomObject]@{ Area = 'Docs'; State = 'Ready' }
    [PSCustomObject]@{ Area = 'Examples'; State = 'Review' }
) | Export-OfficeCsv -Path $csvPath

ConvertFrom-OfficeWordMarkdown -Path $markdownPath -OutputPath $wordPath
ConvertTo-OfficeRtf -MarkdownPath $markdownPath -OutputPath $rtfPath
ConvertFrom-OfficeRtf -Path $rtfPath -As Markdown -OutputPath $roundTripMarkdownPath

Get-OfficeDocumentCapability
Get-OfficeDocumentChunk -Path $wordPath
Get-OfficeDocumentChunk -Path $rtfPath
Import-OfficeCsv -Path $csvPath
```

## What this demonstrates

- building Markdown and CSV artifacts from PowerShell data
- converting Markdown to Word, Markdown to RTF, and RTF back to Markdown
- reading generated files through Reader and format-specific cmdlets

## Source

- [Example-MarkdownDsl.ps1](https://github.com/EvotecIT/PSWriteOffice/blob/main/Examples/Markdown/Example-MarkdownDsl.ps1)
- [Example-CsvBasic.ps1](https://github.com/EvotecIT/PSWriteOffice/blob/main/Examples/Csv/Example-CsvBasic.ps1)
- [Example-WordMarkdownConvert.ps1](https://github.com/EvotecIT/PSWriteOffice/blob/main/Examples/Word/Example-WordMarkdownConvert.ps1)
- [Example-RtfMarkdownRoundTrip.ps1](https://github.com/EvotecIT/PSWriteOffice/blob/main/Examples/Rtf/Example-RtfMarkdownRoundTrip.ps1)

<!-- PowerForge markdown artifact sha256:CE3DFCFAD78C9F1A4AC155F0593AC43C2FC2E854B83561F5EF6305A5C005581F -->
