# Merge, Split, and Reorder PDF Pages

Combine PDF files, normalize page sizes, split by page count, range, or bookmarks, and copy, move, or remove selected pages.

PDF page operations work on completed files. They are appropriate for delivery packs, scanned batches, extracted chapters, and reordered evidence bundles.

## Merge and normalize

```powershell
$options = New-OfficePdfMergeOptions -PageSize A4 -ResizeMode Fit -ResizeMargin 18pt
Merge-OfficeDocument -Path '.\Cover.pdf','.\Report.pdf','.\Appendix.pdf' `
    -OutputPath '.\Pack.pdf' -Options $options -PassThruReport
```

Page normalization is optional. Keep original sizes when fidelity matters; use a fixed target size when the delivery contract requires consistent paper geometry.

## Split by intent

`Split-OfficeDocument` splits PDFs into consecutive page groups, explicit ranges (`-Page '1-3','4,6'`), or top-level bookmarked chapters (`-ByBookmark`). Nested sections stay within their chapter; `-Bookmark` selects exact chapter titles. Outputs use the source base name or `-Prefix`, followed by a part index. Padded indexes make filenames sort predictably. Use `-NoClobber` to keep existing parts; other files in the output folder remain intact.

```powershell
Split-OfficeDocument -Path '.\Pack.pdf' -OutputDirectory '.\Pages' `
    -PageCount 1 -Prefix page -PadIndex -IndexWidth 3
```

Use `Copy-OfficePdfPage`, `Move-OfficePdfPage`, and `Remove-OfficePdfPage` for targeted page assembly. The [merge-and-split recipe](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/PowerShell/PSWriteOffice/Examples/Pdf/Recipe-Pdf-MergeAndSplit.ps1) creates two small inputs, combines them, and splits the result into one-page files.

<!-- PowerForge markdown source sha256:BC09C1C010D06C87BBE2E7C293FCFFF2251CB00C47FF973C536568B0240B2347; title=True -->

<!-- PowerForge markdown artifact sha256:EE671A6F68A2881C64408CADE13D5A3152152EDED3EE51DDEFA890F084C037BC -->
