splitDocument (Controller Resource)

Skip to end of metadata
Go to start of metadata

splitDocument Resource

This resource represents a controller for splitting documnet. It applies to all resources which support it (see Supported By section).

A user can *convert* the resulting documents easily by requesting different representations of the Resource using format={format} query string parameter or HTTP Accept Header.  The available formats for conversion area listed as ATOM alternate links within the presentation's JSON/XML representation.

Resource URI

~/{workbook-name}/split

Request Parameters

Parameter Name HTTP Method(s) Type Query String/HTTP Body Required/Optional
Description
format POST string Query string Optional If the format specified the response contains the conversion data, see a table below for valid formats 
from POST int Query string Optional The start page number for splitting, if is not specified splitting starts from the first page of the document.
to POST int Query string Optional The last page number for splitting, if is not specified splitting ends at the last page of the document.
folder POST string Query string: folder=MyFolder Optional The document folder.
storage POST string Query string: storage=MyAmazonS3Storage Optional The document storage.
Valid Formats
format Parameter Value Format of the returned Page
Valid Formats for Documents
accept Parameter Value Format of the returned Presentation
csv
Comma-separated Values Format
xlsx
Spreadsheet 2007~2010 Format
xlsm
Spreadsheet Which Enable Macro 2007~2010 Format
xltx Spreadsheet Template 2007~2010 Format
xltm Spreadsheet Template Which Enable Macro 2007~2010 Format
text
Table Delimited Text Format
html
HyperText Markup Language Format
pdf
Portable Document Format
ods
Open Document Format
xls
Spreadsheet 97~2003 Format
spreadsheetml
Spreadsheet XML Format
xlsb
Spreadsheet binary 2007~2010 Format
xps
XML Paper Specification Format
tiff
Tagged Image File Format
jpeg
Joint Photographic Experts Group Image Format
png
Portable Networks Graphic Image Format
emf
Enhanced Metafile Format
bmp
Bitmap Picture
gif
Graphics Interchange Format

HTTP GET

Not supported.

HTTP POST

Example 1

Splits sheets 2-3 from the excel document.

POST http://api.aspose.com/v1.1/cells/Book1.xlsx/split?from=2&to=3&format=pdf
Example 2

Splits all worksheets from the workbook document.

POST http://api.aspose.com/v1.1/cells/Book1.xlsx/split
Example 3

Converts 2nd and 3rd worksheet of the wrokbook to TIFF format.

POST http://api.aspose.com/v1.1/cells/Book1.xlsx/split?from=2&to=3&format=tiff
Example 4

Splits all worksheets from the workbook to TIFF format.

POST http://api.aspose.com/v1.1/cells/Book1.xlsx/split?format=tiff
All resulting files are created at the same storage and folder where the original document is.

HTTP PUT

Not supported.

HTTP DELETE

Not supported.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.