
## create(context) {#splittercontext}

Creates new instance of the splitter processor.


```python
def create(self, context: aspose.words.lowcode.SplitterContext):
    ...
```

| Parameter | Type | Description |
| --- | --- | --- |
| context | [SplitterContext](../../splittercontext/) |  |

### Examples

Shows how to split document by pages using context.

```python
doc = MY_DIR + 'Big document.docx'
splitter_context = aw.lowcode.SplitterContext()
splitter_context.split_options.split_criteria = aw.lowcode.SplitCriteria.PAGE
aw.lowcode.Splitter.create(splitter_context).from_file(input=doc).to_file(output=ARTIFACTS_DIR + 'LowCode.SplitContextDocument.docx').execute()
```

Shows how to split document from the stream by pages using context.

```python
with system_helper.io.FileStream(MY_DIR + 'Big document.docx', system_helper.io.FileMode.OPEN, system_helper.io.FileAccess.READ) as stream_in:
    splitter_context = aw.lowcode.SplitterContext()
    splitter_context.split_options.split_criteria = aw.lowcode.SplitCriteria.PAGE
    pages = []
    aw.lowcode.Splitter.create(splitter_context).from_stream(input=stream_in).to_streams(output=pages, save_format=aw.SaveFormat.DOCX).execute()
```

### See Also

* module [aspose.words.lowcode](../../)
* class [Splitter](../)

