API Reference
Cmdlet
New-OfficeRtfPdfOptions
Creates discoverable RTF-to-PDF conversion options for Export-OfficeDocumentPdf.
Remarks
Creates discoverable RTF-to-PDF conversion options for Export-OfficeDocumentPdf.
Examples
Include document structure and bound system-font discovery.
PS>
$options = New-OfficeRtfPdfOptions -IncludeImages -IncludeTables -IncludeHeaderFooters -MaximumSystemFontFamilies 32
Export-OfficeDocumentPdf -InputPath .\Report.rtf -Path .\Report.pdf -RtfOptions $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.
Syntax
New-OfficeRtfPdfOptions [-AllowDocumentFontEmbedding] [-AllowSystemFontEmbedding] [-DefaultImageHeight <Double>] [-DefaultImageWidth <Double>] [-IncludeHeaderFooters] [-IncludeHiddenText] [-IncludeImages] [-IncludeMetadata] [-IncludeNotes] [-IncludeTables] [-MaximumSystemFontFamilies <Int32>] [-PdfOptions <PdfOptions>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- 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.
- IncludeHeaderFooters SwitchParameter
- Render headers and footers.
- IncludeHiddenText SwitchParameter
- 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.
Outputs
OfficeIMO.Rtf.Pdf.RtfPdfSaveOptions