{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pdfconversionapi-com/json-schema/pdfconversionapi-com-convert-form-schema.json",
  "title": "ConvertForm",
  "description": "The request body: a `multipart/form-data` form. JSON, base64 inside JSON and `application/x-www-form-urlencoded` bodies are not supported; they get a 400 with a plain-text body.\n\n- File fields: `File` for one file; `Files`, repeated once per file (or numbered `Files[0]`, `Files[1]`), for several. `File` and `Files` are interchangeable, and field names are case-insensitive. Files are used in the order they appear in the body. Any other field that carries a file name is read as a named file, such as `ImageFile`. At most 50 files.\n- Every other field is a parameter, sent as text. Names: letters, digits and `_`, up to 64 characters, case-insensitive; sent twice, the last value wins. Values: up to 65,536 bytes. At most 100 parameters, named file fields included. An empty value counts as not sent.\n- Yes/no values accept `true` or `false`, `1` or `0`, `yes` or `no`, `on` or `off`, in any case. Numbers are checked against a range, and a value out of range gets a 400 that names the parameter.\n- Only form fields are read: parameters in the query string are ignored.\n- A documented option that this conversion can't apply gets a 400 naming it when you set it to a value other than its default. A parameter that isn't an option of the conversion is ignored.\n- The whole request, files and fields together, can be up to your plan's upload size: 10 MB on the Free plan and 100 MB on paid plans.\n- `File` must hold the file's bytes. A URL sent as text is read as the file; nothing is downloaded for you.\n\n[Requests](https://pdfconversionapi.com/docs/requests) · [Limits](https://pdfconversionapi.com/docs/limits)",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pdfconversionapi-com-openapi.json#/components/schemas/ConvertForm",
  "type": "object",
  "properties": {
    "File": {
      "type": "string",
      "format": "binary",
      "contentMediaType": "application/octet-stream",
      "description": "The file to convert, for conversions that take one file. Its name becomes the output's name with the new extension (`report.docx` comes back as `report.pdf`); `FileName` sets another. `file/to/pdf`, `file/to/md` and `office/to/pdf` read the input format from this name, so it must end in the format, such as `report.docx`; send the `File` part first."
    },
    "Files": {
      "type": "array",
      "maxItems": 50,
      "items": {
        "type": "string",
        "format": "binary",
        "contentMediaType": "application/octet-stream",
        "description": "One input file."
      },
      "description": "For `pdf/to/merge`, `images/to/pdf`, `images/to/join` and `file/to/zip`: one `Files` part per file, in the order they are used. `pdf/to/merge` and `images/to/join` need at least two. The number in `Files[n]` does not reorder them."
    },
    "ImageFile": {
      "type": "string",
      "format": "binary",
      "contentMediaType": "application/octet-stream",
      "description": "For `pdf/to/image-watermark`: the image stamped on each page (PNG, JPEG, TIFF, GIF or BMP)."
    },
    "OverlayFile": {
      "type": "string",
      "format": "binary",
      "contentMediaType": "application/octet-stream",
      "description": "For `pdf/to/pdf-watermark`: the PDF whose page is stamped on each page (`OverlayPage` picks the page)."
    },
    "FileName": {
      "type": "string",
      "description": "Name for the output, without the extension. Letters, digits, spaces, `-`, `_` and `.` are kept, anything else becomes `_`, and the name is cut at 120 characters. With several outputs it replaces the part before the number. Files unpacked from an archive or a PDF keep their own names."
    },
    "StoreFile": {
      "type": "boolean",
      "default": false,
      "description": "`true` returns a download link (`Url` and `FileId`) for each output instead of `FileData`. The link works for 3 hours. [Stored files](https://pdfconversionapi.com/docs/stored-files)"
    },
    "PageRange": {
      "type": "string",
      "description": "Pages to use, counted from 1, for conversions that work page by page. Pages come back in document order, each once. The end of a range may be past the last page; a single page or the start of a range may not (400). A conversion that can't apply `PageRange` refuses any value but its default with a 400."
    },
    "Password": {
      "type": "string",
      "description": "The password that opens a protected input file. PDF tools that rewrite a restricted PDF need the owner password."
    },
    "Data": {
      "type": "string",
      "description": "For `data/to/qrcode` and `data/to/barcode`: the text to encode. A text file in `File` works too."
    }
  },
  "additionalProperties": {
    "type": "string",
    "description": "Other parameters of the conversion, as text."
  }
}