Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

ConvertTo-OfficePdfMarkdown

Module PSWriteOffice
Inputs
System.String
Outputs
System.String System.IO.FileInfo

Converts PDF logical text readback to Markdown.

Syntax

ConvertTo-OfficePdfMarkdown [-IgnorePermissionRestrictions] [-OutputPath <String>] [-PageRange <String>] [-Password <String>] [-Path] <String> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Authored help example

Export logical PDF text as Markdown.

$markdownPath = '.\Examples\Documents\Report.md'
ConvertTo-OfficePdfMarkdown -Path .\Examples\Documents\Report.pdf -PageRange '1-3' -OutputPath $markdownPath
Get-Content $markdownPath -TotalCount 20

Writes Markdown readback for selected pages to a file.

Parameters

-IgnorePermissionRestrictions SwitchParameter optional
After successful password authentication, explicitly ignore owner-imposed extraction restrictions.
-OutputPath String optional
Optional output Markdown file path.
-PageRange String optional
Optional page ranges such as 1-3,5.
-Password String optional
Password used to read a Standard password-encrypted PDF.
-Path String requiredposition: 0pipeline: True (ByValue)aliases: FilePath
PDF file path.

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.