Skip to Content
NexPDF

NexPDF Cloud API

The NexPDF engine as an HTTP API. Convert, OCR, redact, protect and archive documents from any language, with nothing to install.

English

NexPDF Cloud runs the same engine as the NexPDF SDKs on our servers. You send files over HTTPS and get the finished document back in the same response. Nothing is stored once the request ends.

Use it when you cannot ship a native library (serverless functions, a PHP host, a no-code tool), when jobs come now and then, or to try a workflow before you embed the SDK.

What it does

AreaWhat you can doGuide
GenerateWord, Excel, PowerPoint, images, EPUB and HTML to PDFConvert to PDF, HTML to PDF
AssembleMerge files, pick page ranges, rotate and delete pagesMerge and pages
ScanOCR scanned pages into searchable textOCR
ExtractMarkdown, HTML or structured JSON from any documentExtraction
ProtectRedact text, regex and patterns (e-mail, IBAN, card numbers…), watermark, encryptRedaction, Watermark, Encrypt
ComplyPDF/A for archiving, PDF/UA tagging for accessibilityPDF/A, Accessibility
EditFill and flatten forms, optimise and linearise, edit Excel cells and Word textForms, Optimize, Office editing
ExportPDF to Word, Excel or a PNG of any pageOffice export

One call, many steps

Most work is one request to /v1/build: name your files, list the parts to join, the actions to apply in order and the output you want. This contract and annex become one redacted, watermarked, password-protected PDF in a single call:

curl https://api.nexpdf.dev/v1/build \
  -H "Authorization: Bearer $NEXPDF_API_KEY" \
  -F contract=@contract.pdf \
  -F annex=@annex.docx \
  -F 'instructions={
    "parts": [
      {
        "file": "contract"
      },
      {
        "file": "annex"
      }
    ],
    "actions": [
      {
        "type": "redact",
        "query": "email",
        "mode": "pattern"
      },
      {
        "type": "watermark",
        "text": "CONFIDENTIAL"
      },
      {
        "type": "encrypt",
        "owner_password": "owner-secret",
        "user_password": "reader"
      }
    ],
    "output": {
      "type": "pdf",
      "linearize": true
    }
  }' \
  -o packet.pdf

How it works

  1. You create an API key in the dashboard. Test keys are free on every account; live keys draw on your plan.
  2. Your server sends the files as multipart/form-data with the key as a bearer token.
  3. The request runs in its own isolated worker, with limits on time and memory and no network access.
  4. The response is the finished file. It carries x-nexpdf-units (what it cost) and x-request-id (quote it when you write to us). Files are gone when the request ends.

Also from NexPDF

  • The SDKs run the same engine inside your own app, on-device or on your servers, with no per-request cost.
  • The MCP server gives AI assistants and agents these tools, and the docs MCP server lets them read this documentation.

On this page