Add a new Image to a PDF Document
Contents
[
Hide
]
Introduction
This example allows you to add an images to a page in a PDF Document.
API Information
| API | Type | Description |
|---|---|---|
| /pdf/{name}/pages/{pageNumber}/images | POST | Add a new image to a PDF Document on the given page |
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 |
| llx | true | Query | Integer | Lower Left X Coordinate |
| lly | true | Query | Integer | Lower Left Y Coordinate |
| urx | true | Query | Integer | Upper Right X Coordinate |
| ury | true | Query | Integer | Upper Right Y Coordinate |
| imageFilePath | false | Query | String | Path of the image to host if uploaded to storage. Else Request Data can contain the image |
Resource
The following Aspose.PDF Cloud REST API resource has been used in the examples: PostInsertImage.
cURL Example
Input File: PDF With Images
SDK Source
The Aspose for Cloud SDKs can be downloaded from the following page: Available SDKs
SDK Examples
Get all Fields