Cmdlet
New-OfficeRtfPdfOptions
Creates discoverable RTF-to-PDF conversion options for Convert-OfficeDocument -To Pdf.
Syntax
New-OfficeRtfPdfOptions
[-AllowDocumentFontEmbedding]
[-AllowSystemFontEmbedding]
[-DefaultImageHeight <OfficeLength>]
[-DefaultImageWidth <OfficeLength>]
[-IncludeHiddenText]
[-MaximumSystemFontFamilies <Int32>]
[-NoHeaderFooters]
[-NoImages]
[-NoMetadata]
[-NoNotes]
[-NoTables]
[-PdfOptions <PdfCreateOptions>]
[<CommonParameters>]#Parameter set:
DefaultDescription
Pass the result to Convert-OfficeDocument -Options when converting RTF files to PDF.
Examples
Include document structure and bound system-font discovery.
$options = New-OfficeRtfPdfOptions -NoImages -NoTables -NoHeaderFooters -MaximumSystemFontFamilies 32
Convert-OfficeDocument -To Pdf -Path .\Report.rtf -OutputPath .\Report.pdf -Options $optionsParameters
- -AllowDocumentFontEmbedding SwitchParameter
- Allow embedding fonts referenced by the RTF document.
- -AllowSystemFontEmbedding SwitchParameter
- Allow embedding fonts discovered on the current system.
- -DefaultImageHeight OfficeLength
- Fallback image height in PDF points.
- -DefaultImageWidth OfficeLength
- Fallback image width in PDF points.
- Include text marked hidden.
- -MaximumSystemFontFamilies Int32
- Maximum number of system font families to discover.
- Render headers and footers.
- -NoImages SwitchParameter
- Render images.
- -NoMetadata SwitchParameter
- Copy document metadata into the PDF.
- -NoNotes SwitchParameter
- Render document notes.
- -NoTables SwitchParameter
- Render tables.
- -PdfOptions PdfCreateOptions
- 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.