{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rendlet-com/json-schema/rendlet-com-html-request-schema.json",
  "title": "HtmlRequest",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rendlet-com-openapi.json#/components/schemas/HtmlRequest",
  "type": "object",
  "required": [
    "html"
  ],
  "properties": {
    "html": {
      "type": "string",
      "maxLength": 2000000,
      "description": "Full HTML document. JavaScript is disabled; only data: and public https: assets load."
    },
    "options": {
      "type": "object",
      "properties": {
        "format": {
          "type": "string",
          "enum": [
            "A4",
            "Letter",
            "Legal",
            "A3",
            "A5"
          ],
          "default": "A4"
        },
        "landscape": {
          "type": "boolean",
          "default": false
        },
        "margin": {
          "type": "string",
          "default": "12mm",
          "description": "CSS length applied to all sides"
        },
        "printBackground": {
          "type": "boolean",
          "default": true
        }
      }
    },
    "filename": {
      "type": "string"
    },
    "response": {
      "type": "string",
      "enum": [
        "binary",
        "base64"
      ],
      "default": "binary"
    }
  }
}