# Split a PDF into smaller files

Split a PDF into consecutive page groups, download the generated documents as a ZIP archive, and keep the original file unchanged in your browser.

Organize PDF pages

[Split a PDF in the browser](/browser/split-pdf/) [Read the .NET guide](/docs/pdf/operations/)

Split summary

**Input**

PDF

**Output**

ZIP of PDF parts

**Package**

[OfficeIMO.Pdf on NuGet](https://www.nuget.org/packages/OfficeIMO.Pdf)

**Runs on**

Browser-local WebAssembly or .NET

**Microsoft Office**

Not required

**License**

MIT

The browser creates at most 100 parts and caps serialized split output at 64 MiB.

[Browse all PDF workflows](/pdf/)

Practical steps

## Split a PDF into consecutive parts

Choose the maximum pages per part and package the resulting PDF files into one download.

1. **Select**Choose one PDF and confirm its page count.
2. **Size**Enter the number of consecutive pages to place in each output document.
3. **Download**Create the parts and download them together as a ZIP archive.

Splitting creates consecutive page groups: a 10-page source split at three pages produces ranges 1-3, 4-6, 7-9, and 10. The final part may contain fewer pages.

## Split from .NET

```csharp
using OfficeIMO.Pdf;

PdfDocument source = PdfDocument.Load("book.pdf");
int pageCount = source.Inspect().PageCount;
const int pagesPerPart = 10;

for (int first = 1, part = 1; first <= pageCount; first += pagesPerPart, part++) {
    int last = Math.Min(pageCount, first + pagesPerPart - 1);
    PdfPageSelector pages = PdfPageSelector.Parse($"{first}-{last}");
    File.WriteAllBytes($"book.part-{part:000}.pdf", source.Pages.Extract(pages).ToBytes());
}
```

Application code decides how to name and store individual outputs. The browser packages them into ZIP because browsers handle one bounded download more predictably than a burst of separate files.

## Boundaries

Splitting does not infer chapters, bookmarks, invoices, or logical document boundaries. Use [extract pages](/pdf/extract-pages/) when the required ranges are not consecutive fixed-size groups. Signed and encrypted sources also require deliberate policy because each output is a newly written document.

## API used on this page

- [`PdfDocument`](/api/pdf/officeimo-pdf-pdfdocument/)

<!-- PowerForge markdown artifact sha256:24836CD990D505A8C8DF6EBF253E2770468312B68BE5A69B47EAFDFEC7A08F95 -->
