Working with the Rendition API
Create PDF, JPEG, or PNG renditions from a specific InDesign document using the Rendition API.
Quickstart
Use the cURL command below to create a JPEG image from an InDesign document.
Be sure to update the {PRE-SIGNED_URL} with the pre-signed URL of the InDesign document.
curl --request POST \
--url https://indesign.adobe.io/v3/create-rendition \
--header 'Authorization: bearer {YOUR_OAUTH_TOKEN}' \
--header 'x-api-key: {YOUR_API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
"assets": [
{
"source": {
"url": "{PRE-SIGNED_URL}"
},
"destination": "Short_Document.indd"
}
],
"params": {
"outputMediaType": "image/jpeg",
"pageRange": "All",
"quality": "medium",
"resolution": 72,
"targetDocuments": [
"Short_Document.indd"
],
"outputFolderPath":"outputfolder"
}
}
The raw data may include three parts:
- assets - Input assets for the request.
- params - Information about what to do with the input assets.
- outputs - Specify locations where the output assets are uploaded. Without an
outputsparameter, the output assets are stored in a temporary repository, and a pre-signed URL will be shared for those assets, which will be valid for 24hrs. For multi-page exports, see Output file naming for multi-page renditions below to predict each page's file name when settingsource.
Consult this skeleton cURL request for more details.
Output file naming for multi-page renditions
When pageRange spans more than one page or spread (for example, with createSeparateFiles: true), the Rendition API generates one output file per page, following the platform's output file naming convention.