Split

Aspose provides a powerful API to split Word documents. It’s a common document automation task when you need to break a large document into a number of smaller ones to handle them separately.

For example, you must have been in a situation when you have a massive DOCX file, requiring urgent team work. In this case, it is pretty necessary to divide a Word document into sub-documents to speed up the collaborative workflow.

Task to split a DOCX document by hand with manual copying and pasting may be a long, labor-intensive, sub-optimal approach. Instead, you can improve your efficiency dramatically with this API by breaking Word document into files, while specifying operation parameters as you need.

Using this API you can easily split a DOC, DOT, DOCX, DOTX, RTF, ODT, OTT, TXT document and save the results to DOC, DOCX, PDF, ODT, RTF, HTML, JPEG, PNG and many other file formats.

REST API

The OpenAPI Specification defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser. The description of the important parameters of the API is given below:

Parameter Name Type Description
format string If the format is specified, the response contains the conversion data. Please see the table below for valid formats.
from int The start page number for splitting, if it is not specified, splitting starts from the first page of the document.
to int The last page number for splitting, if it is not specified, splitting ends at the last page of the document.
zipOutput bool ZipOutput or not.

You can use cURL command-line tool to access Aspose.Words web services easily. The following example shows how to make calls to Cloud API with cURL.

Cloud SDK Family

Using an SDK is the best way to speed up the development. An SDK takes care of low-level details and lets you focus on your project tasks. Please check out the GitHub repository for a complete list of Aspose.Words Cloud SDKs.

The following code examples demonstrate how to make calls to Aspose.Words web services using various SDKs:

Split DOCX to PDFs

The following code examples demonstrate how to split all pages in a Word document.

Split specific pages to PDFs

The following code examples demonstrate how to split specific pages of a Word document.

Split specific pages to any Supported Format

The following code examples demonstrate how to split a Word document to any format.

See also