# Split-OfficePdf

Splits a PDF into page, range, count, or bookmark files.

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**

`System.IO.FileInfo`

**Source**

[SplitOfficePdfCommand.cs:22](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Pdf/SplitOfficePdfCommand.cs#L22) 

Splits a PDF into page, range, count, or bookmark files.

## Syntax

```
Split-OfficePdf
[-BookmarkName <String[]>]
[-ByBookmark]
[-IgnorePermissionRestrictions]
[-IndexWidth <Int32>]
[-OutputDirectory] <String>
[-PadIndex]
[-PageRange <String[]>]
[-PagesPerDocument <Int32>]
[-Password <String>]
[-Path] <String>
[-Prefix <String>]
[<CommonParameters>]
```

[#](#method-split-officepdf-string-switchparameter-switchparameter-int32-string-switchparameter-string-int32-string-string-string)

Parameter set: `All Parameter Sets`

## Examples

### Split a PDF into page files.

```powershell
$pages = Split-OfficePdf -Path .\Examples\Documents\Combined.pdf -OutputDirectory .\Examples\Documents\Pages -Prefix 'combined-page'
$pages | Select-Object Name, Length
```

Creates one output PDF for each page and returns the written files.

## Parameters

**-BookmarkName String[] optionalaliases: Bookmark, BookmarkTitle**

Create one PDF for each supplied bookmark title.

**-ByBookmark SwitchParameter optional**

Create one PDF for every readable bookmark when -BookmarkName is not supplied.

**-IgnorePermissionRestrictions SwitchParameter optional**

After successful password authentication, explicitly ignore owner-imposed assembly restrictions.

**-IndexWidth Int32 optional**

Pad numeric split names to this explicit width.

**-OutputDirectory String requiredposition: 1**

Output directory.

**-PadIndex SwitchParameter optional**

Pad numeric split names to the width required by the source page count.

**-PageRange String[] optionalaliases: PageRanges, Range**

Create one PDF for each supplied page range or selection, such as 1-3 or 1,3.

**-PagesPerDocument Int32 optional**

Create one PDF for each consecutive group with this many pages.

**-Password String optional**

Password used to open an encrypted PDF.

**-Path String requiredposition: 0aliases: FilePath**

Input PDF path.

**-Prefix String optional**

Output file prefix.

## 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:1638C6C776AEA4B440F48659B091DC3D1EBE9087A67B760AC2091A80C62A3B5E -->
