# New-OfficeWordPdfOptions

Creates discoverable Word-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 **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`None`

**Outputs**

`OfficeIMO.Word.Pdf.WordToPdfOptions`

**Source**

[NewOfficeWordPdfOptionsCommand.cs:18](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Word/NewOfficeWordPdfOptionsCommand.cs#L18) 

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

## Syntax

```
New-OfficeWordPdfOptions
[-AllowDocumentFontEmbedding]
[-AllowSystemFontEmbedding]
[-Author <String>]
[-DefaultOrientation <Portrait|Landscape>]
[-DefaultPageSize <WordPageSize>]
[-DefaultTableBorders]
[-FontFamily <String>]
[-IncludePageNumbers]
[-Keywords <String>]
[-MarginBottom <Double>]
[-MarginLeft <Double>]
[-MarginRight <Double>]
[-MarginTop <Double>]
[-Orientation <Portrait|Landscape>]
[-PageNumberFormat <String>]
[-PageSize <PageSize>]
[-PdfOptions <PdfOptions>]
[-Subject <String>]
[-Title <String>]
[<CommonParameters>]
```

[#](#member-7a009e1c4577551cc390b486)

Parameter set: `All Parameter Sets`

## Examples

### Configure metadata, page numbers, and font embedding.

```powershell
$options = New-OfficeWordPdfOptions -Title 'Service report' -Author 'Evotec' -IncludePageNumbers -AllowSystemFontEmbedding
Export-OfficeDocumentPdf -InputPath .\Report.docx -Path .\Report.pdf -WordOptions $options
```

## Parameters

**-AllowDocumentFontEmbedding SwitchParameter optional**

Allow embedding installed fonts selected by a trusted Word document. System-font embedding must also be enabled.

**-AllowSystemFontEmbedding SwitchParameter optional**

Allow embedding fonts discovered on the current system.

**-Author String optional**

PDF author metadata.

**-DefaultOrientation OfficePageOrientation optional**

Fallback page orientation for sections without page settings.

Possible values: `Portrait`, `Landscape`

**-DefaultPageSize WordPageSize optional**

Fallback Word page size for sections without page settings.

Possible values: `Unknown`, `Letter`, `Legal`, `Statement`, `Executive`, `A3`, `A4`, `A5`, `A6`, `B5`, `Tabloid`, `B4Jis`, `Envelope9`, `Envelope10`, `CSheet`, `EnvelopeDl`, `EnvelopeC5`, `EnvelopeC4`, `EnvelopeB5`, `EnvelopeMonarch`

**-DefaultTableBorders SwitchParameter optional**

Draw default borders for tables that do not specify borders.

**-FontFamily String optional**

Default font family used when the document does not specify one.

**-IncludePageNumbers SwitchParameter optional**

Include page numbers in the generated PDF.

**-Keywords String optional**

PDF keywords metadata.

**-MarginBottom Double optional**

Bottom page margin in PDF points.

**-MarginLeft Double optional**

Left page margin in PDF points.

**-MarginRight Double optional**

Right page margin in PDF points.

**-MarginTop Double optional**

Top page margin in PDF points.

**-Orientation OfficePageOrientation optional**

PDF page orientation.

Possible values: `Portrait`, `Landscape`

**-PageNumberFormat String optional**

Page number text format.

**-PageSize PageSize optional**

PDF page size.

**-PdfOptions PdfOptions optional**

Underlying low-level OfficeIMO PDF options.

**-Subject String optional**

PDF subject metadata.

**-Title String optional**

PDF title metadata.

## 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:BE455C8844005CB437559D0E7273F43D8E51201FB79BDCA03A040E0926300E5B -->
