Skip to end of metadata
Go to start of metadata
Contents Summary
  

Introduction

While working with your documents, you may come across scenarios where you want to split the large documents into smaller ones. You can split the documents into separate documents within the MS Word document or different file formats. Splitting one large document into smaller documents of different file formats is an important aspect in document manipulation tasks. It involves a series of steps that need to be performed for getting the desired results. Aspose.Words Cloud eliminates the need of such complicated tasks and makes it hassle free for you.

Aspose.Words Cloud has provided the simplest API to split a Word document within MS Word documents or other file formats.

Resource URI

Aspose.Words Cloud APIs Swagger UI lets you call this REST API directly from the browser. The description of the important parameters of the API are given below:

Parameter NameTypeDescription
formatstringIf the format is specified, the response contains the conversion data. Please see the table below for valid formats.
fromintThe start page number for splitting, if it is not specified, splitting starts from the first page of the document.
tointThe last page number for splitting, if it is not specified, splitting ends at the last page of the document.
zipOutputboolZipOutput or not.

The valid formats are:

format Parameter ValueFormat of the returned Page
bmpBitmap Picture
doc...
docm...
docx...
dot...
dotm...
dotx...
emfEnhanced Metafile Format
epub...
flatopc/fopc...
flatopc_macro/fopc_macro...
flatopc_template/fopc_template...
flatopc_template_macro/fopc_template_macro...
jpeg/jpgJoint Photographic Experts Group Image Format
html...
htmlfixed...
mhtml/mht...
odt...
openxps...
ott...
pclPrinter Command Language Format
pdfPortable Document Format
pngPortable Networks Graphic Image Format
ps...
rtf...
svg...
text/txt...
tiff/tifTagged Image File Format
wordml/wml...
xps...
xamlfixed...

Example 1

Split all pages from the document into PDF format:

POST https://api.aspose.cloud/v1.1/words/TestSplitDocument.doc/split?format=pdf

Example 2

Split pages 2-3 from the document into PDF format:

POST https://api.aspose.cloud/v1.1/words/TestSplitDocument.doc/split?from=2&to=3&format=pdf

Example 3

Split pages 2-3 from the document into JPEG format where the input document is saved in a particular folder, not on the root of the storage:

POST https://api.aspose.cloud/v1.1/words/TestSplitDocument.doc/split?from=2&to=3&format=jpeg&folder=SomeFolder

Example 4

Split all pages from the document into PDF format and zip files:

POST https://api.aspose.cloud/v1.1/words/TestSplitDocument.doc/split?format=pdf&zipoutput=true

cURL Example

 Request
 Response

SDKs

Using an SDK (API client) is the quickest way for a developer to speed up the development. An SDK takes care of a lot of low-level details of making requests and handling responses and lets you focus on writing code specific to your particular project. Checkout our GitHub repository for a complete list of Aspose.Words Cloud SDKs along with working examples, to get you started in no time. Please check Available SDKs article to learn how to add an SDK to your project.

SDK Examples

Split all Pages to new PDFs

Split all pages
 C#
 Java
 PHP
 Python
 Ruby
 Node.js

Split specific pages to new PDFs

Split specific pages
 C#
 Java
 PHP
 Python
 Ruby
 Node.js

Split specific pages to any Supported Format

split document to any format
 C#
 Java
 PHP
 Python
 Ruby
 Node.js

 

Labels
  • No labels