---
title: "SplitBy"
version: "0.9.0"
url: "https://docs.laminapdf.com/reference/sdk/type-aliases/splitby/"
---

# SplitBy

```ts
type SplitBy = 
  | {
  count: number;
}
  | {
  ranges: readonly (readonly string[])[];
}
  | {
  bookmarks: number;
};
```

Defined in: [packages/sdk/src/document.ts:223](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/document.ts#L223)

Where [Document.split](/reference/sdk/classes/document.md#split) cuts a document: every `count` pages, at the lists of page IDs in
`ranges`, or where the bookmarks at depth `bookmarks` (1: the top level) begin.

## Since

0.3.0
