Extract Document Images to a Particular Format

Introduction

This example allows you to extract images from a PDF Document in a particular format. All Images are uploaded to a Cloud Storage. Aspose.PDF Cloud allows document images to be extracted in the following images

Extract images as JPEG

API Information

API Type Description Resource
/pdf/{name}/pages/{pageNumber}/images/extract/jpeg PUT Read image information from a given page of a PDF Document that is uploaded on Storage PutImagesExtractAsJpeg

API Parameters

Parameter Required Type Data Type Description
name true Path String The name of the document in storage to read form fields from
pageNumber true Path Integer The page number of the document containing the images
width false Query Integer The width of the extracted image
height false Query Integer The height of the extracted image
storage false Query String The storage
folder false Query String Source folder for PDF File
destFolder false Query String The extracted images are placed in this folder

cURL Example

Extract images as TIFF

API Information

API Type Description Resource
/pdf/{name}/pages/{pageNumber}/images/extract/tiff PUT Read image information from a given page of a PDF Document that is uploaded on Storage PutImagesExtractAsTiff

API Parameters

Parameter Required Type Data Type Description
name true Path String The name of the document in storage to read form fields from
pageNumber true Path Integer The page number of the document containing the images
width false Query Integer The width of the extracted image
height false Query Integer The height of the extracted image
storage false Query String The storage
folder false Query String Source folder for PDF File
destFolder false Query String The extracted images are placed in this folder

cURL Example

Extract images as GIF

API Information

API Type Description Resource
/pdf/{name}/pages/{pageNumber}/images/extract/gif PUT Read image information from a given page of a PDF Document that is uploaded on Storage PutImagesExtractAsGif

API Parameters

Parameter Required Type Data Type Description
name true Path String The name of the document in storage to read form fields from
pageNumber true Path Integer The page number of the document containing the images
width false Query Integer The width of the extracted image
height false Query Integer The height of the extracted image
storage false Query String The storage
folder false Query String Source folder for PDF File
destFolder false Query String The extracted images are placed in this folder

cURL Example

Extract images as PNG

API Information

API Type Description Resource
/pdf/{name}/pages/{pageNumber}/images/extract/png PUT Read image information from a given page of a PDF Document that is uploaded on Storage PutImagesExtractAsPng

API Parameters

Parameter Required Type Data Type Description
name true Path String The name of the document in storage to read form fields from
pageNumber true Path Integer The page number of the document containing the images
width false Query Integer The width of the extracted image
height false Query Integer The height of the extracted image
storage false Query String The storage
folder false Query String Source folder for PDF File
destFolder false Query String The extracted images are placed in this folder

cURL Example