# New-OfficeRtfPdfOptions

Creates discoverable RTF-to-PDF conversion options for Export-OfficeDocumentPdf.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`None`

**Outputs**

`OfficeIMO.Rtf.Pdf.RtfToPdfOptions`

**Source**

[NewOfficeRtfPdfOptionsCommand.cs:15](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Rtf/NewOfficeRtfPdfOptionsCommand.cs#L15) 

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>]
```

[#](#method-new-officertfpdfoptions-switchparameter-switchparameter-double-double-switchparameter-switchparameter-switchparameter-switchparameter-switchparameter-switchparameter-int32-pdfoptions)

Parameter set: `All Parameter Sets`

## Examples

### Include document structure and bound system-font discovery.

```powershell
$options = New-OfficeRtfPdfOptions -IncludeImages -IncludeTables -IncludeHeaderFooters -MaximumSystemFontFamilies 32
Export-OfficeDocumentPdf -InputPath .\Report.rtf -Path .\Report.pdf -RtfOptions $options
```

## Parameters

**-AllowDocumentFontEmbedding SwitchParameter optional**

Allow embedding fonts referenced by the RTF document.

**-AllowSystemFontEmbedding SwitchParameter optional**

Allow embedding fonts discovered on the current system.

**-DefaultImageHeight Double optional**

Fallback image height in PDF points.

**-DefaultImageWidth Double optional**

Fallback image width in PDF points.

**-IncludeHeaderFooters SwitchParameter optional**

Render headers and footers.

**-IncludeHiddenText SwitchParameter optional**

Include text marked hidden.

**-IncludeImages SwitchParameter optional**

Render images.

**-IncludeMetadata SwitchParameter optional**

Copy document metadata into the PDF.

**-IncludeNotes SwitchParameter optional**

Render document notes.

**-IncludeTables SwitchParameter optional**

Render tables.

**-MaximumSystemFontFamilies Int32 optional**

Maximum number of system font families to discover.

**-PdfOptions PdfOptions optional**

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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:79E5C67600847243EB7381266F257C8D2DD54B6B477FCB82E4FFC21EB553CBBA -->
