Skip to Content
NexPDF

Export to Word, Excel and images

Turn PDFs into editable Word and Excel files, or render a page as PNG.

English

Set the build's output to docx or xlsx to get an editable file back, or to png to get an image of one page, for previews and thumbnails.

Cost: 1 unit per file exported or image rendered.

PDF to Word

curl https://api.nexpdf.dev/v1/build \
  -H "Authorization: Bearer $NEXPDF_API_KEY" \
  -F doc=@contract.pdf \
  -F 'instructions={
    "parts": [
      {
        "file": "doc"
      }
    ],
    "output": {
      "type": "docx"
    }
  }' \
  -o contract.docx

Render a page as PNG

page counts from 0; dpi goes from 36 to 300 (default 150).

curl https://api.nexpdf.dev/v1/build \
  -H "Authorization: Bearer $NEXPDF_API_KEY" \
  -F doc=@brochure.pdf \
  -F 'instructions={
    "parts": [
      {
        "file": "doc"
      }
    ],
    "output": {
      "type": "png",
      "page": 0,
      "dpi": 144
    }
  }' \
  -o cover.png

On this page