{
  "openapi": "3.0.1",
  "info": {
    "title": "📑 PDF to HTML Converter Lite – Pay Per Result",
    "description": "⚡Effortlessly transform ➡️ your PDF documents 📑 into responsive, mobile-friendly 🌐HTML pages. Boost web performance with perfect conversions and seamless browser compatibility. Maximum Pages: 20 per PDF",
    "version": "1.0",
    "x-build-id": "i3vFZ35ZTyGjiyKYW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/microtrica~pdf-to-html-lite/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-microtrica-pdf-to-html-lite",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/microtrica~pdf-to-html-lite/runs": {
      "post": {
        "operationId": "runs-sync-microtrica-pdf-to-html-lite",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/microtrica~pdf-to-html-lite/run-sync": {
      "post": {
        "operationId": "run-sync-microtrica-pdf-to-html-lite",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "🔗 PDF URLs",
            "type": "array",
            "description": "Provide the URLs to the PDF files you wish to convert.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxRequestsPerCrawl": {
            "title": "📈 Max Requests per Crawl",
            "type": "integer",
            "description": "Maximum number of requests that can be made by the crawler.",
            "default": 2
          },
          "f": {
            "title": "📃 First Page to Process",
            "minimum": 1,
            "type": "integer",
            "description": "Specify the first page to process. If not provided, the default is 1.",
            "default": 1
          },
          "l": {
            "title": "📜 Last Page to Process",
            "minimum": 1,
            "type": "integer",
            "description": "Specify the last page to process. If not provided, the entire document will be processed."
          },
          "zoom": {
            "title": "🔍 Zoom Factor",
            "type": "string",
            "description": "Specify the zoom factor. By default, the pages will be rendered at 72DPI if not specified.",
            "default": "1.0"
          },
          "fitWidth": {
            "title": "↔️ Fit Page Width",
            "type": "integer",
            "description": "Maximum width of the page (in pixels)."
          },
          "fitHeight": {
            "title": "↕️ Fit Page Height",
            "type": "integer",
            "description": "Maximum height of the page (in pixels)."
          },
          "dpi": {
            "title": "📏 DPI (Dots Per Inch)",
            "type": "integer",
            "description": "Set the DPI for the conversion process. Default is 144."
          },
          "useCropbox": {
            "title": "✂️ Use CropBox",
            "type": "boolean",
            "description": "Use CropBox instead of MediaBox for output (default: true).",
            "default": true
          },
          "processNonText": {
            "title": "🖼️ Process Non-Text Elements",
            "type": "boolean",
            "description": "Process non-text elements (like images) during the conversion (default: true).",
            "default": true
          },
          "processOutline": {
            "title": "📝 Process Outline",
            "type": "boolean",
            "description": "Whether to include the PDF's outline in the generated HTML (default: true).",
            "default": true
          },
          "printing": {
            "title": "🖨️ Enable Printing Support",
            "type": "boolean",
            "description": "Enable support for printing. Disabling it may reduce CSS size (default: true).",
            "default": true
          },
          "fallback": {
            "title": "🔄 Fallback Mode",
            "type": "boolean",
            "description": "Enable fallback mode for better accuracy and browser compatibility (default: false). This option may increase the file size."
          },
          "embedExternalFont": {
            "title": "🔗 Embed External Fonts",
            "type": "boolean",
            "description": "Embed fonts that are not embedded in the original PDF (default: true).",
            "default": true
          },
          "fontFormat": {
            "title": "💾 Font Format",
            "enum": [
              "woff",
              "ttf",
              "otf"
            ],
            "type": "string",
            "description": "Choose the format for extracted fonts from the PDF (default: woff).",
            "default": "woff"
          },
          "heps": {
            "title": "↔️ Maximum Horizontal Offset",
            "type": "integer",
            "description": "Specify the maximum horizontal offset in pixels (default: 1).",
            "default": 1
          },
          "veps": {
            "title": "↕️ Maximum Vertical Offset",
            "type": "integer",
            "description": "Specify the maximum vertical offset in pixels (default: 1).",
            "default": 1
          },
          "spaceThreshold": {
            "title": "📏 Space Threshold",
            "type": "string",
            "description": "Insert a space between letters when the distance exceeds the specified threshold (default: 0.125).",
            "default": "0.125"
          },
          "fontSizeMultiplier": {
            "title": "🔠 Font Size Multiplier",
            "type": "string",
            "description": "Adjust the font size multiplier to improve rendering accuracy (default: 4.0).",
            "default": "4.0"
          },
          "spaceAsOffset": {
            "title": "🕳️ Treat Space as Offset",
            "type": "boolean",
            "description": "Treat spaces as offsets for better optimization (default: false).",
            "default": false
          },
          "tounicode": {
            "title": "🔡 ToUnicode Map",
            "enum": [
              "-1",
              "0",
              "1"
            ],
            "type": "string",
            "description": "Specify how to apply the ToUnicode map (-1 for custom, 0 for balance, 1 for always). Default is 0."
          },
          "optimizeText": {
            "title": "⚡ Optimize Text",
            "type": "boolean",
            "description": "Reduce the number of HTML elements used for text (default: false).",
            "default": false
          },
          "bgFormat": {
            "title": "🖼️ Background Image Format",
            "enum": [
              "png",
              "jpg",
              "svg"
            ],
            "type": "string",
            "description": "Specify the background image format (default: png).",
            "default": "png"
          },
          "ownerPassword": {
            "title": "🔑 Owner Password",
            "type": "string",
            "description": "Specify the owner password for the PDF, if protected."
          },
          "userPassword": {
            "title": "🔐 User Password",
            "type": "string",
            "description": "Specify the user password for the PDF, if protected."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}