---
title: "Remove Page Breaks from a Document"
---

```

## Purpose Summary

This page explains how to remove page breaks from a document.

```

On this page we will look at how to remove page breaks from a document using Aspose.Words or Open XML SDK.

{{< nosnippet >}}

{{< tabs tabTotal="2" tabID="1" tabName1="Aspose.Words" tabName2="Open XML SDK" >}}

{{< tab tabNum="1" >}}

In Aspose.Words, use the [PageBreak](https://reference.aspose.com/words/net/aspose.words/controlchar/pagebreak/) field of the [ControlChar](https://reference.aspose.com/words/net/aspose.words/controlchar/) class to find all page breaks.

The following code example shows how to remove page breaks from a document:

{{< gist "aspose-words-gists" "8cceaff98abfaa9643169bb00de01e4b" "remove-page-breaks-aspose-words.cs" >}}

{{< /tab >}}

{{< tab tabNum="2" >}}

You can also do the same using the Open XML SDK. At the same time, note that it looks somewhat more complicated and more cumbersome.

The following code example shows how to remove page breaks from a document:

{{< gist "aspose-words-gists" "8cceaff98abfaa9643169bb00de01e4b" "remove-page-breaks-open-xml.cs" >}}

{{< /tab >}}

{{< /tabs >}}

{{< /nosnippet >}}

```

You can download the sample file of this example from [Aspose.Words GitHub](https://github.com/aspose-words/Aspose.Words-for-.NET/tree/master/Plugins/Aspose.Words%20Vs%20OpenXML%20Words/Aspose.Words%20VS%20OpenXML).

```

```

For more information about Aspose.Words features please visit [Remove Page and Section Breaks](/words/net/working-with-sections/#how-to-remove-page-and-section-breaks).

```

