# New-OfficeTextPdfOptions

Creates literal text decoding and PDF layout settings 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.Pdf.PdfPlainTextOptions`

**Source**

[NewOfficeTextPdfOptionsCommand.cs:12](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Pdf/NewOfficeTextPdfOptionsCommand.cs#L12) 

Creates literal text decoding and PDF layout settings for Export-OfficeDocumentPdf.

## Syntax

```
New-OfficeTextPdfOptions
[-EncodingName <String>]
[-MaximumCharacters <Int32>]
[-MaximumPages <Int32>]
[-PdfOptions <PdfOptions>]
[-TabSize <Int32>]
[<CommonParameters>]
```

[#](#method-new-officetextpdfoptions-string-int32-int32-pdfoptions-int32)

Parameter set: `All Parameter Sets`

## Examples

### Read UTF-16 text with four-column tabs.

```powershell
$options = New-OfficeTextPdfOptions -EncodingName utf-16 -TabSize 4
Export-OfficeDocumentPdf -InputPath .\Report.txt -Path .\Report.pdf -TextOptions $options
```

## Parameters

**-EncodingName String optional**

Explicit encoding; otherwise use a Unicode BOM or strict UTF-8.

**-MaximumCharacters Int32 optional**

Maximum decoded and expanded characters.

**-MaximumPages Int32 optional**

Maximum generated pages.

**-PdfOptions PdfOptions optional**

PDF fonts and page geometry; default is ten-point Courier.

**-TabSize Int32 optional**

Source columns per tab stop.

## 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:69F92D7188E118C6DA149082A8FA03E3F97CBFCB28F826E71B5D489121A57A1F -->
