{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudmersive/json-schema/cloudmersive-html-to-pdf-request-schema.json",
  "title": "HtmlToPdfRequest",
  "description": "Details of the HTML to PDF request",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudmersive-convertweb-api-openapi.yml#/components/schemas/HtmlToPdfRequest",
  "type": "object",
  "properties": {
    "Html": {
      "description": "HTML to render to PDF",
      "type": "string"
    },
    "ExtraLoadingWait": {
      "format": "int32",
      "description": "Optional: Additional number of milliseconds to wait once the web page has finished loading before taking the screenshot.  Can be helpful for highly asynchronous websites. Provide a value of 0 for the default of 5000 milliseconds (5 seconds). Maximum is 30000 milliseconds (30 seconds).",
      "type": "integer"
    },
    "IncludeBackgroundGraphics": {
      "description": "Optional: Set to true to include background graphics in the PDF, or false to not include.  Default is true.",
      "type": "boolean"
    },
    "ScaleFactor": {
      "format": "int32",
      "description": "Optional: Set to 100 to scale at 100%, set to 50% to scale down to 50% scale, set to 200% to scale up to 200% scale, etc.  Default is 100%. Maximum is 1000%.",
      "type": "integer"
    },
    "AutoSanitize": {
      "description": "Optional: Automatically sanitize unsafe elements from the input HTML.  If disabled, and unsafe elements remain in the input HTML, the request will be blocked.  Default is true.",
      "type": "boolean"
    },
    "PageSize": {
      "description": "Optional: Page size for the PDF output.  Default is Letter.  Allowed values: Letter, Legal, Tabloid, Ledger, A0, A1, A2, A3, A4, A5, A6.",
      "type": "string"
    }
  }
}