Replace Image in a PDF Document

Introduction

This example allows you to replace an image in a PDF file using Aspose.PDF Cloud API in your applications. 

API Information

API Type Description
/pdf/{name}/images/{imageId} PUT Replace the image specified by the {imageId} by the new image. You use GetImages to read ImageID from a document

API Parameters

Parameter Required Type Data Type Description
name true Path String The name of the document in storage to replace the image in
imageId true Path String The identifier of the image to be replaced
imageFilePath false Query / Request Data Binary

This can be used in two ways

- Path of image in storage

- Image data sent in Request Body

Resource

The following Aspose.PDF  Cloud REST API resource has been used in the examples: PutReplaceImage.

cURL Example

SDK Source

The Aspose for Cloud SDKs can be downloaded from the following page: Available SDKs

SDK Examples

Replace image using file