Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

Merge, Split, and Reorder PDF Pages

Edit on GitHub

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

$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.

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 creates two small inputs, combines them, and splits the result into one-page files.

Example source