PDFConversionAPI · Schema

DocxToPngForm

The form for `docx/to/png`, `docx/to/jpg`, `doc/to/png`, `doc/to/jpg`: the parameters listed on https://pdfconversionapi.com/convert/docx-to-png. Other parameters are sent as text.

CompanyPDFConversionDevelopers

Properties

Name Type Description
File string The file to convert. Its name becomes the output's name, with the new extension.
ImageResolution integer Pixels per inch of page. A Letter page comes out 850 × 1,100 at 100 (the sample) and 1,275 × 1,650 at the default. ConvertAPI uses 200 when this is left out, so set it explicitly if you are moving cod
ImageWidth integer Width of each page image in pixels. The page is drawn at the scale this width needs, not drawn at `ImageResolution` and resampled. `ImageWidth=800` gives an 800 × 1,035 image of the sample's Letter pa
ImageHeight integer Height of each page image in pixels: `ImageHeight=500` gives 386 × 500. With both sizes the page fits inside the box, so 800 × 800 gives 618 × 800.
ScaleProportions boolean With `false` and both sizes, the page is stretched to exactly that box: 800 × 800 from a Letter page, with the text stretched wider.
ScaleIfLarger boolean With `true`, sizes only shrink. A page already smaller than the size you ask for keeps the size `ImageResolution` gives: `ImageWidth=2000` left the sample's first page at 1,275 × 1,650 (150 DPI).
ScaleImage boolean With `false`, the page is drawn at `ImageResolution` and cut to `ImageWidth` × `ImageHeight` from its top-left corner instead of scaled. 500 × 300 at 150 DPI kept the top margin and the left part of t
ColorSpace string Pages come back as RGB PNGs with no alpha channel, so `default` and `rgb` give the same file: page 1 at 72 DPI is 151,579 bytes either way. `gray` writes one 8-bit gray channel (55,501 bytes for that
ImageInterpolation boolean Accepted for compatibility. Pages drawn to an `ImageWidth` are smoothed the same way either way: `true` and `false` gave byte-identical files.
PageRange string Draw only these pages; each file keeps its page number, so `PageRange=2` returns `program-guide-2.png`. A range may end past the last page, but a page that doesn't exist returns 400 with the document'
ImageQuality integer JPEG quality, for `docx/to/jpg` and `doc/to/jpg`. The sample's two JPG pages at 150 DPI are 407,350 bytes at 85 and 280,641 at 50. ConvertAPI's default is 75. PNG ignores it.
BackgroundColor string Color painted behind each page before it is drawn; left out, pages are white. A value that is not a color returns 400. Values: `white`, `black`, `red`, `green`, `blue`, `gray`, `#RRGGBB` or `R,G,B`.
TransparentColor string PNG only: every pixel of exactly this color becomes transparent. Smoothed pixels at the edges of letters are not exactly white, so they stay opaque and show as a light fringe on a dark backdrop. Value
UpdateFields boolean Rebuild the table of contents and refresh cross-references before the pages are drawn. In our test, a table of contents saved with one stale entry was drawn with all three headings, dot leaders and pa
UpdateTableOfContents boolean Same effect as `UpdateFields`; any of the three switches turns the refresh on.
UpdateReferences boolean Same effect as `UpdateFields`.
IncludeMarkup boolean Draw comments in balloons in the right margin and show tracked changes, as the PDF route does with the same option. The page content is scaled down to make room for the balloons. Without it, the image
Password string Open password of a protected .docx. Our encrypted copy of the sample, sent with its password, gave the same two PNGs byte for byte. Without it, or with a wrong one: 422 "the input file is password-pro
FileName string Stem for the page files: `FileName=fall-guide` gives `fall-guide-1.png` and `fall-guide-2.png`. Without it, the uploaded file's name is used.
StoreFile boolean Store the images and return one download link per page instead of the data. Links expire after 3 hours.
View JSON Schema on GitHub

JSON Schema

pdfconversionapi-com-docx-to-png-form-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pdfconversionapi-com/json-schema/pdfconversionapi-com-docx-to-png-form-schema.json",
  "title": "DocxToPngForm",
  "description": "The form for `docx/to/png`, `docx/to/jpg`, `doc/to/png`, `doc/to/jpg`: the parameters listed on https://pdfconversionapi.com/convert/docx-to-png. Other parameters are sent as text.",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pdfconversionapi-com-openapi.json#/components/schemas/DocxToPngForm",
  "type": "object",
  "required": [
    "File"
  ],
  "properties": {
    "File": {
      "type": "string",
      "format": "binary",
      "contentMediaType": "application/octet-stream",
      "description": "The file to convert. Its name becomes the output's name, with the new extension."
    },
    "ImageResolution": {
      "type": "integer",
      "minimum": 36,
      "maximum": 600,
      "default": 150,
      "description": "Pixels per inch of page. A Letter page comes out 850 × 1,100 at 100 (the sample) and 1,275 × 1,650 at the default. ConvertAPI uses 200 when this is left out, so set it explicitly if you are moving code over. When you send it, the value is also written into the file: the sample's PNGs say 100 DPI."
    },
    "ImageWidth": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20000,
      "description": "Width of each page image in pixels. The page is drawn at the scale this width needs, not drawn at `ImageResolution` and resampled. `ImageWidth=800` gives an 800 × 1,035 image of the sample's Letter page; the height follows the page's proportions."
    },
    "ImageHeight": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20000,
      "description": "Height of each page image in pixels: `ImageHeight=500` gives 386 × 500. With both sizes the page fits inside the box, so 800 × 800 gives 618 × 800."
    },
    "ScaleProportions": {
      "type": "boolean",
      "default": true,
      "description": "With `false` and both sizes, the page is stretched to exactly that box: 800 × 800 from a Letter page, with the text stretched wider."
    },
    "ScaleIfLarger": {
      "type": "boolean",
      "default": false,
      "description": "With `true`, sizes only shrink. A page already smaller than the size you ask for keeps the size `ImageResolution` gives: `ImageWidth=2000` left the sample's first page at 1,275 × 1,650 (150 DPI)."
    },
    "ScaleImage": {
      "type": "boolean",
      "default": true,
      "description": "With `false`, the page is drawn at `ImageResolution` and cut to `ImageWidth` × `ImageHeight` from its top-left corner instead of scaled. 500 × 300 at 150 DPI kept the top margin and the left part of the sample's banner."
    },
    "ColorSpace": {
      "type": "string",
      "enum": [
        "default",
        "rgb",
        "gray",
        "monochrome"
      ],
      "default": "default",
      "description": "Pages come back as RGB PNGs with no alpha channel, so `default` and `rgb` give the same file: page 1 at 72 DPI is 151,579 bytes either way. `gray` writes one 8-bit gray channel (55,501 bytes for that page), and adds an alpha channel only when `TransparentColor` is sent. `monochrome` makes every pixel pure black or white, split at mid-gray, which took the same page down to 15,785 bytes. `cmyk` returns 400 \"ColorSpace cmyk is not supported yet; use rgb, gray or monochrome\"."
    },
    "ImageInterpolation": {
      "type": "boolean",
      "default": false,
      "description": "Accepted for compatibility. Pages drawn to an `ImageWidth` are smoothed the same way either way: `true` and `false` gave byte-identical files."
    },
    "PageRange": {
      "type": "string",
      "description": "Draw only these pages; each file keeps its page number, so `PageRange=2` returns `program-guide-2.png`. A range may end past the last page, but a page that doesn't exist returns 400 with the document's page count.\n\nValues: Pages and ranges such as `2`, `1-3`, `2-` or `2-last` (to the end)."
    },
    "ImageQuality": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 85,
      "description": "JPEG quality, for `docx/to/jpg` and `doc/to/jpg`. The sample's two JPG pages at 150 DPI are 407,350 bytes at 85 and 280,641 at 50. ConvertAPI's default is 75. PNG ignores it."
    },
    "BackgroundColor": {
      "type": "string",
      "description": "Color painted behind each page before it is drawn; left out, pages are white. A value that is not a color returns 400.\n\nValues: `white`, `black`, `red`, `green`, `blue`, `gray`, `#RRGGBB` or `R,G,B`."
    },
    "TransparentColor": {
      "type": "string",
      "description": "PNG only: every pixel of exactly this color becomes transparent. Smoothed pixels at the edges of letters are not exactly white, so they stay opaque and show as a light fringe on a dark backdrop.\n\nValues: `white`, `black`, `red`, `green`, `blue`, `gray`, `#RRGGBB` or `R,G,B`."
    },
    "UpdateFields": {
      "type": "boolean",
      "default": false,
      "description": "Rebuild the table of contents and refresh cross-references before the pages are drawn. In our test, a table of contents saved with one stale entry was drawn with all three headings, dot leaders and page numbers. Without it, the stored entries are drawn."
    },
    "UpdateTableOfContents": {
      "type": "boolean",
      "default": false,
      "description": "Same effect as `UpdateFields`; any of the three switches turns the refresh on."
    },
    "UpdateReferences": {
      "type": "boolean",
      "default": false,
      "description": "Same effect as `UpdateFields`."
    },
    "IncludeMarkup": {
      "type": "boolean",
      "default": false,
      "description": "Draw comments in balloons in the right margin and show tracked changes, as the PDF route does with the same option. The page content is scaled down to make room for the balloons. Without it, the images show the final text and no comments."
    },
    "Password": {
      "type": "string",
      "description": "Open password of a protected .docx. Our encrypted copy of the sample, sent with its password, gave the same two PNGs byte for byte. Without it, or with a wrong one: 422 \"the input file is password-protected\"."
    },
    "FileName": {
      "type": "string",
      "description": "Stem for the page files: `FileName=fall-guide` gives `fall-guide-1.png` and `fall-guide-2.png`. Without it, the uploaded file's name is used."
    },
    "StoreFile": {
      "type": "boolean",
      "default": false,
      "description": "Store the images and return one download link per page instead of the data. Links expire after 3 hours."
    }
  },
  "additionalProperties": {
    "type": "string"
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/pdfconversionapi-com-docx-to-png-form"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.