Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Get-OfficeDocumentPageMarkdown

Module PSWriteOffice
Inputs
OfficeIMO.Reader.OfficeDocumentReadResult
Outputs
OfficeIMO.Reader.OfficeDocumentPageMarkdown System.String

Projects Reader pages into citation-friendly Markdown.

Syntax

Get-OfficeDocumentPageMarkdown [-AsString] [-InputObject] <OfficeDocumentReadResult> [-NoPageMarkers] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Authored help example

Create one Markdown file with page markers.

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.