Cmdlet
New-OfficeRtfPdfOptions
Creates discoverable RTF-to-PDF conversion options for Export-OfficeDocumentPdf.
Syntax
New-OfficeRtfPdfOptions
[-AllowDocumentFontEmbedding]
[-AllowSystemFontEmbedding]
[-DefaultImageHeight <Double>]
[-DefaultImageWidth <Double>]
[-IncludeHeaderFooters]
[-IncludeHiddenText]
[-IncludeImages]
[-IncludeMetadata]
[-IncludeNotes]
[-IncludeTables]
[-MaximumSystemFontFamilies <Int32>]
[-PdfOptions <PdfOptions>]
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Include document structure and bound system-font discovery.
$options = New-OfficeRtfPdfOptions -IncludeImages -IncludeTables -IncludeHeaderFooters -MaximumSystemFontFamilies 32
Export-OfficeDocumentPdf -InputPath .\Report.rtf -Path .\Report.pdf -RtfOptions $optionsParameters
- -AllowDocumentFontEmbedding SwitchParameter
- Allow embedding fonts referenced by the RTF document.
- -AllowSystemFontEmbedding SwitchParameter
- Allow embedding fonts discovered on the current system.
- -DefaultImageHeight Double
- Fallback image height in PDF points.
- -DefaultImageWidth Double
- Fallback image width in PDF points.
- Render headers and footers.
- Include text marked hidden.
- -IncludeImages SwitchParameter
- Render images.
- -IncludeMetadata SwitchParameter
- Copy document metadata into the PDF.
- -IncludeNotes SwitchParameter
- Render document notes.
- -IncludeTables SwitchParameter
- Render tables.
- -MaximumSystemFontFamilies Int32
- Maximum number of system font families to discover.
- -PdfOptions PdfOptions
- Underlying low-level OfficeIMO PDF options.
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.