Extract a Particular Image from a PDF Document
Contents
[
Hide
]
Introduction
This example allows you to extract a particular image from a PDF page using Aspose.PDF for Cloud API in your applications. Aspose.PDF Cloud allows you to extract image in the following formats
Extract Image to JPEG Format
API Information
API | Type | Description | Resource |
---|---|---|---|
/pdf/{name}/images/{imageId}/extract/jpeg | GET | The extracted image is returned in the response stream | GetImageExtractAsJpeg |
/pdf/{name}/images/{imageId}/extract/jpeg | PUT | The extracted image is saved to the storage | PutImageExtractAsJpeg |
API Parameters
Parameter | Required | Type | Data Type | Description |
---|---|---|---|---|
name | true | Path | String | The name of the document in storage to read form fields from |
imageId | true | Path | String | Identifier of the image to extract |
width | false | Query | Integer | Width of extracted Image |
height | false | Query | Integer | Height of extracted image |
storage | false | Query | String | Storage to use when PUT Resource is used |
folder | false | Query | String | Folder to use when PUT Resource is used |
cURL Example using GET
cURL Example using PUT
Extract Image to TIFF Format
API Information
API | Type | Description | Resource |
---|---|---|---|
/pdf/{name}/images/{imageId}/extract/tiff | GET | The extracted image is returned in the response stream | GetImageExtractAsTiff |
/pdf/{name}/images/{imageId}/extract/tiff | PUT | The extracted image is saved to the storage | PutImageExtractAsTiff |
API Parameters
Parameter | Required | Type | Data Type | Description |
---|---|---|---|---|
name | true | Path | String | The name of the document in storage to read form fields from |
imageId | true | Path | String | Identifier of the image to extract |
width | false | Query | Integer | Width of extracted Image |
height | false | Query | Integer | Height of extracted image |
storage | false | Query | String | Storage to use when PUT Resource is used |
folder | false | Query | String | Folder to use when PUT Resource is used |
cURL Example using GET
cURL Example using PUT
Extract Image to GIF Format
API Information
API | Type | Description | Resource |
---|---|---|---|
/pdf/{name}/images/{imageId}/extract/gif | GET | The extracted image is returned in the response stream | GetImageExtractAsGif |
/pdf/{name}/images/{imageId}/extract/gif | PUT | The extracted image is saved to the storage | PutImageExtractAsGif |
API Parameters
Parameter | Required | Type | Data Type | Description |
---|---|---|---|---|
name | true | Path | String | The name of the document in storage to read form fields from |
imageId | true | Path | String | Identifier of the image to extract |
width | false | Query | Integer | Width of extracted Image |
height | false | Query | Integer | Height of extracted image |
storage | false | Query | String | Storage to use when PUT Resource is used |
folder | false | Query | String | Folder to use when PUT Resource is used |
cURL Example using GET
cURL Example using PUT
Extract Image to PNG Format
API Information
API | Type | Description | Resource |
---|---|---|---|
/pdf/{name}/images/{imageId}/extract/png | GET | The extracted image is returned in the response stream | GetImageExtractAsPng |
/pdf/{name}/images/{imageId}/extract/png | PUT | The extracted image is saved to the storage | PutImageExtractAsPng |
API Parameters
Parameter | Required | Type | Data Type | Description |
---|---|---|---|---|
name | true | Path | String | The name of the document in storage to read form fields from |
imageId | true | Path | String | Identifier of the image to extract |
width | false | Query | Integer | Width of extracted Image |
height | false | Query | Integer | Height of extracted image |
storage | false | Query | String | Storage to use when PUT Resource is used |
folder | false | Query | String | Folder to use when PUT Resource is used |