---
Product: Aspose.Words
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/words/python/sectionbuilder
---

# SectionBuilder

## Overview

`SectionBuilder` is a class in Aspose.Words FOSS for Python.

Split the body into :class:`ldm.Section`\\ s at sectPr boundaries.

This class declares 2 methods for SectionBuilder objects in Python programs.
Available methods include: `__init__`, `build_all`.
Public members are accessible to any Python application after installing the Aspose.Words FOSS for Python package.

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__(ctx: ReaderContext, paragraph_builder: ParagraphBuilder, table_builder: TableBuilderFn, page_setup_builder: PageSetupBuilder)` | Calls __init__(ctx, paragraph_builder, table_builder, page_setup_builder) on this SectionBuilder instance. |
| `build_all()` → `list[ldm.Section]` | Walk the body and split into Sections at every ``<w:sectPr>``. |

## See Also

- [Aspose.Words for Python — Enterprise API Reference](https://reference.aspose.com/words/python-net/)