Extract Pages

Last modified by Farooq Sheikh on 2020/01/02 10:17

Extract Pages by Exact Page Numbers

This REST API allows extracting pages from source documents by providing exact page numbers via Pages collection. The result is a new document that contains only specified pages from a source document. For protected documents, it is also required to provide a password. 

The following example demonstrates how to extract pages 2,4,7 from a source document into a new document.

Resource URI

HTTP POST ~/Pages/Extract

Swagger UI lets you call this REST API directly from the browser.  

cURL Example

 


 

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. Check out our GitHub repository for a complete list of GroupDocs.Merger Cloud SDKs along with working examples, to get you started in no time. Please check to Get Supported File Formats article to learn how to add an SDK to your project.

Extract Pages by Exact Page Numbers

 

Extract Pages by Exact Page Number Range

This REST API allows extracting pages from source document by providing only start/end page numbers of the desired page range. There is also an ability to get only even/odd pages from the specified page range by setting RangeMode property. 
The result is a new document that contains only specified pages from a source document. For protected documents, it is also required to provide a password. 

The following example demonstrates how to extract even pages from a document in a range from 1st to 10th page. 
Resultant document will contain pages 2, 4, 6, 8, 10 from the source document.

Resource URI

HTTP POST ~/Pages/Extract

Swagger UI lets you call this REST API directly from the browser.  

cURL Example

 


 

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. Check out our GitHub repository for a complete list of GroupDocs.Merger Cloud SDKs along with working examples, to get you started in no time. Please check to Get Supported File Formats article to learn how to add an SDK to your project.

Extract Pages by Exact Page Number Range

 

Tags:
Created by Farooq Sheikh on 2020/01/02 10:17