API Reference
Cmdlet
New-OfficeMarkdownPdfOptions
Creates discoverable Markdown-to-PDF conversion options for Export-OfficeDocumentPdf.
Remarks
Creates discoverable Markdown-to-PDF conversion options for Export-OfficeDocumentPdf.
Examples
Allow local report images and apply PDF metadata.
PS>
$options = New-OfficeMarkdownPdfOptions -Title 'Service report' -Author 'Evotec' -IncludeLocalImages -BaseDirectory .\Assets
Export-OfficeDocumentPdf -InputPath .\Report.md -Path .\Report.pdf -MarkdownOptions $options
Builds a typed options object through ordinary PowerShell parameters; no hashtable or .NET construction is required.
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.
Syntax
New-OfficeMarkdownPdfOptions [-ApplyWordLikeTheme] [-Author <String>] [-BaseDirectory <String>] [-CreateOutlineFromHeadings] [-DefaultImageHeight <Double>] [-DefaultImageWidth <Double>] [-FontFamily <String>] [-FrontMatterRenderMode <Hidden|DocumentHeader|Table>] [-IncludeDataUriImages] [-IncludeLocalImages] [-Keywords <String>] [-MaximumDataUriImageBytes <Int32>] [-Options <MarkdownPdfSaveOptions>] [-PdfOptions <PdfOptions>] [-RestrictLocalImagesToBaseDirectory] [-Subject <String>] [-Theme <Plain>] [-Title <String>] [-UseFirstHeadingAsTitle] [-UseFrontMatterMetadata] [-UseFrontMatterVisualTheme] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- ApplyWordLikeTheme SwitchParameter
- Apply the built-in Word-like Markdown PDF baseline theme.
- Author String
- PDF author metadata.
- BaseDirectory String
- Base directory used to resolve local Markdown images.
- CreateOutlineFromHeadings SwitchParameter
- Create PDF outlines from Markdown headings.
- DefaultImageHeight Double
- Fallback image height in PDF points.
- DefaultImageWidth Double
- Fallback image width in PDF points.
- FontFamily String
- Default font family.
- FrontMatterRenderMode MarkdownPdfFrontMatterRenderMode
- Controls how YAML front matter appears in the PDF body.
- Possible values:
Hidden,DocumentHeader,Table - IncludeDataUriImages SwitchParameter
- Embed supported data URI images.
- IncludeLocalImages SwitchParameter
- Embed supported local image files.
- Keywords String
- PDF keywords metadata.
- MaximumDataUriImageBytes Int32
- Maximum decoded bytes for one data URI image.
- Options MarkdownPdfSaveOptions
- Existing Markdown PDF options to clone and override.
- PdfOptions PdfOptions
- Underlying low-level OfficeIMO PDF options.
- RestrictLocalImagesToBaseDirectory SwitchParameter
- Require local images to resolve under BaseDirectory.
- Subject String
- PDF subject metadata.
- Theme OfficeVisualThemeKind
- Built-in visual theme.
- Possible values:
Plain,WordLike,TechnicalDocument,GitHubLike,Compact,Report - Title String
- PDF title metadata.
- UseFirstHeadingAsTitle SwitchParameter
- Use the first Markdown heading as the PDF title when no title is supplied.
- UseFrontMatterMetadata SwitchParameter
- Use front matter values as PDF metadata.
- UseFrontMatterVisualTheme SwitchParameter
- Use front matter values to select a visual theme.
Outputs
OfficeIMO.Markdown.Pdf.MarkdownPdfSaveOptions