# Get-OfficeDocumentPageMarkdown

Projects Reader pages into citation-friendly Markdown.

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/0.2.0)

Stars **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Reader.OfficeDocumentReadResult`

**Outputs**

`OfficeIMO.Reader.OfficeDocumentPageMarkdown` `System.String`

**Source**

[GetOfficeDocumentPageMarkdownCommand.cs:19](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Reader/GetOfficeDocumentPageMarkdownCommand.cs#L19) 

Projects Reader pages into citation-friendly Markdown.

## Syntax

```
Get-OfficeDocumentPageMarkdown
[-AsString]
[-InputObject] <OfficeDocumentReadResult>
[-NoPageMarkers]
[<CommonParameters>]
```

[#](#method-get-officedocumentpagemarkdown-switchparameter-officedocumentreadresult-switchparameter)

Parameter set: `All Parameter Sets`

## Examples

### Create one Markdown file with page markers.

```powershell
Get-OfficeDocument -Path .\Handbook.pdf |
                Get-OfficeDocumentPageMarkdown -AsString |
                Set-Content -Path .\Handbook.pages.md
```

Uses OfficeIMO.Reader page projection and preserves the page provenance in each marker.

## Parameters

**-AsString SwitchParameter optional**

Return one combined Markdown string instead of one page result per page.

**-InputObject OfficeDocumentReadResult requiredposition: 0pipeline: True (ByValue)**

Normalized document returned by Get-OfficeDocument.

**-NoPageMarkers SwitchParameter optional**

Omit portable HTML page markers from the Markdown.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:8C9FFFCB05AA7729D78376F3A6597D82A6A524D4CBE41750A0BE4428E8CCAAE0 -->
