{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-export-rendition-request-schema.json",
  "title": "ExportRenditionRequest",
  "description": "Payload for requesting rendition of a document.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-express-openapi.yml#/components/schemas/ExportRenditionRequest",
  "type": "object",
  "properties": {
    "id": {
      "description": "The identifier of the document that needs to be rendered.",
      "type": "string"
    },
    "pages": {
      "description": "A comma-separated string of page numbers for which the rendition request is made. For example, \"1,2,3\".\nPage ranges can also be specified. For example, \"1-3\" includes pages 1, 2, and 3.\nAnother example is \"1,3-5\", which includes pages 1, 3, 4, and 5.\n\"1-\" can be used to specify all pages, while \"5-\" indicates page 5 to the last page.\nIf not provided, the first page is considered by default. Page numbers start from 1.",
      "type": "string"
    },
    "options": {
      "description": "Options for the requested rendition.",
      "anyOf": [
        {
          "$ref": "#/$defs/ImageRenditionOptions"
        },
        {
          "$ref": "#/$defs/VideoRenditionOptions"
        },
        {
          "$ref": "#/$defs/PdfRenditionOptions"
        }
      ]
    }
  },
  "required": [
    "id",
    "options"
  ],
  "$defs": {
    "ImageRenditionFormat": {
      "description": "The format of the bitmap rendition.",
      "enum": [
        "image/jpeg",
        "image/png"
      ],
      "type": "string"
    },
    "ImageRenditionOptions": {
      "description": "Options for the image rendition request.",
      "type": "object",
      "properties": {
        "format": {
          "$ref": "#/$defs/ImageRenditionFormat",
          "description": "Image rendition format"
        },
        "size": {
          "description": "The size of the \"image\" rendition on the longest side. The aspect ratio is maintained.\nFor image the minimum size supported is 1px and maximum size supported is 8192px.\n\nIf not provided, the default size of page is considered.",
          "type": "number"
        }
      },
      "required": [
        "format"
      ]
    },
    "PdfMarginUnit": {
      "description": "The unit of measurement for the bleed or crop margin.",
      "enum": [
        "in",
        "mm"
      ],
      "type": "string"
    },
    "PdfRenditionOptions": {
      "description": "Options for the requested PDF rendition.",
      "type": "object",
      "properties": {
        "format": {
          "description": "PDF rendition format",
          "type": "string",
          "enum": [
            "application/pdf"
          ]
        },
        "pdfType": {
          "description": "The type of PDF rendition. Default is \"standard\".",
          "enum": [
            "print",
            "standard"
          ],
          "type": "string"
        },
        "downloadIndividualPdfFiles": {
          "description": "Controls whether pages are downloaded as separate PDF files.\nWhen true, each page is downloaded as its own PDF file.\nWhen false, all pages are combined into a single PDF file.\n\nDefaults to false.",
          "type": "boolean"
        },
        "config": {
          "description": "Configuration for the provided PDF type.",
          "anyOf": [
            {
              "$ref": "#/$defs/PrintConfig"
            },
            {
              "$ref": "#/$defs/StandardConfig"
            }
          ]
        }
      },
      "required": [
        "format"
      ]
    },
    "PrintConfig": {
      "description": "Configuration options for print-ready PDF renditions.",
      "type": "object",
      "properties": {
        "bleed": {
          "description": "Controls whether to include bleed settings in the PDF.\nDefaults to false.",
          "type": "boolean"
        },
        "bleedSettings": {
          "description": "Configuration settings for bleed margins.\nOnly applies when bleed is true.\nDefault value is 0.125 <unit>.",
          "$ref": "#/$defs/ValueWithUnit"
        },
        "cropMargins": {
          "description": "Controls whether to include crop margins in the PDF.\nDefaults to false.",
          "type": "boolean"
        },
        "cropMarginsSettings": {
          "description": "Configuration settings for crop margins.\nOnly applies when cropMargins is true.\nDefault value is 0.125 <unit>.",
          "$ref": "#/$defs/ValueWithUnit"
        }
      }
    },
    "StandardConfig": {
      "description": "Configuration settings for standard PDF rendition.",
      "type": "object",
      "properties": {
        "accessibilityTags": {
          "description": "Controls whether accessibility tags are included in the PDF.\nWhen true, accessibility tags will be embedded in the PDF.\nWhen false, accessibility tags will be omitted.\n\nDefaults to false.",
          "type": "boolean"
        }
      }
    },
    "ValueWithUnit": {
      "description": "Configuration settings for the \"print\" PDF rendition.\nIt includes values to adjust the amount and unit of measurement.",
      "type": "object",
      "properties": {
        "amount": {
          "description": "The amount of bleed or crop margin.\nIt can be a positive or negative value.",
          "type": "number"
        },
        "unit": {
          "$ref": "#/$defs/PdfMarginUnit",
          "description": "The unit of measurement for the bleed or crop margin."
        }
      },
      "required": [
        "amount",
        "unit"
      ]
    },
    "VideoRenditionOptions": {
      "description": "Options for the video rendition request.",
      "type": "object",
      "properties": {
        "format": {
          "description": "video rendition format",
          "type": "string",
          "enum": [
            "video/mp4"
          ]
        },
        "size": {
          "description": "The size of the \"video\" rendition on the longest side. The aspect ratio is maintained.\nFor video the minimum size supported is 146px and maximum size supported is 4096px.\n\nIf not provided, the default size of page is considered.",
          "type": "number"
        }
      },
      "required": [
        "format"
      ]
    }
  }
}