Add a new Image to a PDF Document


This example allows you to add an images to a page in a PDF Document.

API Information

/pdf/{name}/pages/{pageNumber}/imagesPOSTAdd a new image to a PDF Document on the given page

API Parameters

ParameterRequiredTypeData TypeDescription
nametruePathStringThe name of the document in storage to read form fields from
pageNumbertruePathIntegerThe page number of the document containing the images
llxtrueQueryIntegerLower Left X Coordinate
llytrueQueryIntegerLower Left Y Coordinate
urxtrueQueryIntegerUpper Right X Coordinate
urytrueQueryIntegerUpper Right Y Coordinate
imageFilePathfalseQueryStringPath of the image to host if uploaded to storage. Else Request Data can contain the image


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

cURL Example

Input File: PDF With Images