---
title: "DWS Processor API"
canonical_url: "https://www.nutrient.io/guides/dws-processor/"
md_url: "https://www.nutrient.io/guides/dws-processor.md"
last_updated: "2026-05-15T19:10:05.000Z"
description: "Learn how to use Nutrient DWS Processor API to generate, convert, and modify PDFs, with support for multiple programming languages."
---

# DWS Processor API

Nutrient DWS Processor API is an HTTP API that provides you with a simple document-in, document-out-based workflow that scales as you grow. Generate PDFs, convert documents to PDF, modify existing PDFs, and more.

## Quick start

Get started with Nutrient DWS Processor API using our SDK client libraries, or send raw HTTP requests.

### Installation

### Python

```sh

pip install nutrient-dws

```

### JavaScript

```sh

npm install @nutrient-sdk/dws-client-typescript

```

### curl

```sh

# No installation required.

# curl is available by default on most macOS/Linux environments.

```

### Example

### Python

```python

import asyncio
from nutrient_dws import NutrientClient

async def main():
    client = NutrientClient(api_key="YOUR_API_KEY")
    result = await client.convert("document.docx", "pdf")

    with open("output.pdf", "wb") as f:
        f.write(result.buffer)

asyncio.run(main())

```

### JavaScript

```js

import fs from "node:fs";
import { NutrientClient } from "@nutrient-sdk/dws-client-typescript";

async function main() {
  const client = new NutrientClient({ apiKey: "YOUR_API_KEY" });
  const result = await client.convert("document.docx", "pdf");

  fs.writeFileSync("output.pdf", Buffer.from(result.buffer));
}

main();

```

### curl

```bash

curl -L -o document.docx \
  https://www.nutrient.io/api/assets/downloads/samples/docx/document.docx

curl -X POST https://api.nutrient.io/build \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F 'document=@document.docx' \
  -F 'instructions={"parts":[{"file":"document"}]}' \
  --fail \
  -o output.pdf

```

Prefer a more guided setup (API key, dashboard, more examples)? Follow the [getting started guide](/guides/dws-processor/getting-started.md).

## Supported languages

Java

[Read more](https://www.nutrient.io/guides/dws-processor/supported-languages/java.md)

C#

[Read more](https://www.nutrient.io/guides/dws-processor/supported-languages/csharp.md)

JavaScript

[Read more](https://www.nutrient.io/guides/dws-processor/supported-languages/javascript.md)

Python

[Read more](https://www.nutrient.io/guides/dws-processor/supported-languages/python.md)

PHP

[Read more](https://www.nutrient.io/guides/dws-processor/supported-languages/php.md)

## Supported file types

`PDF documents`

`Image files`

`MS Office files`

## Popular actions

Browse some of our action categories to find the API you need to build a lean document processing workflow.

**PDF generation**

Generate PDF documents from HTML documents using our PDF generation API.

[Read more](https://www.nutrient.io/api/pdf-generator-api/)

**Office conversion**

Convert Word, Excel, and PowerPoint files to PDF with our Office-to-PDF API.

[Read more](https://www.nutrient.io/api/office-to-pdf-api/)

**Image conversion**

Use our image-to-PDF conversion API to convert JPG, PNG, and TIFF files to PDF.

[Read more](https://www.nutrient.io/api/image-to-pdf-api/)

**PDF editing**

Use our PDF editor API to merge, split, delete, flatten, and duplicate PDF documents.

[Read more](https://www.nutrient.io/api/pdf-editor-api/)

## Try out API actions

Watermark

[Read more](https://www.nutrient.io/api/pdf-watermark-api/)

Converter

[Read more](https://www.nutrient.io/api/converter-api/)

OCR

[Read more](https://www.nutrient.io/api/pdf-ocr-api/)

PDF generator

[Read more](https://www.nutrient.io/api/pdf-generator-api/)

Table extraction

[Read more](https://www.nutrient.io/api/table-extraction-api/)

Merge

[Read more](https://www.nutrient.io/api/merge-pdf-api/)

Split

[Read more](https://www.nutrient.io/api/split-pdf-api/)

Duplicate

[Read more](https://www.nutrient.io/api/duplicate-pdf-page-api/)

Delete

[Read more](https://www.nutrient.io/api/delete-pdf-page-api/)

Flatten

[Read more](https://www.nutrient.io/api/flatten-pdf-api/)

---

## Related pages

- [Supported file types](/guides/dws-processor/file-types.md)
- [Privacy](/guides/dws-processor/privacy.md)
- [Support](/guides/dws-processor/support.md)
- [Security](/guides/dws-processor/security.md)
- [Test our free tier](/guides/dws-processor/test-mode.md)

## Pages in this section

- [Authentication your requests](/guides/dws-processor/developer-guides/authentication.md)
- [Combine API actions in a single request](/guides/dws-processor/developer-guides/combine-workflows.md)
- [Deployment options](/guides/dws-processor/developer-guides/deployment-options.md)
- [API overview](/guides/dws-processor/developer-guides.md)
- [Troubleshooting errors](/guides/dws-processor/developer-guides/errors.md)
- [Web SDK integration](/guides/dws-processor/developer-guides/web-sdk-client.md)
- [Performance](/guides/dws-processor/developer-guides/performance.md)
- [PDF generation](/guides/dws-processor/developer-guides/pdf-generation.md)
- [Nutrient DWS MCP Server](/guides/dws-processor/getting-started/mcp-server.md)
- [Create sample HTML.](/guides/dws-processor/getting-started.md)
- [Postman collection](/guides/dws-processor/getting-started/postman-collection.md)
- [Zapier integration](/guides/dws-processor/getting-started/zapier-integration.md)
- [Pricing](/guides/dws-processor/pricing.md)
- [Calculate credit usage](/guides/dws-processor/pricing/calculate-credit-usage.md)
- [Pricing per tool](/guides/dws-processor/pricing/pricing-per-tool.md)
- [DWS Processor API with C#](/guides/dws-processor/supported-languages/csharp.md)
- [Enable enhanced code completion and documentation for Claude Code using the Nutrient DWS SDK.](/guides/dws-processor/supported-languages/javascript.md)
- [Supported languages](/guides/dws-processor/supported-languages.md)
- [DWS Processor API with Java](/guides/dws-processor/supported-languages/java.md)
- [Enable enhanced code completion and documentation for Claude Code using the Nutrient DWS SDK.](/guides/dws-processor/supported-languages/python.md)
- [DWS Processor API with other languages](/guides/dws-processor/supported-languages/other.md)
- [DWS Processor API with PHP](/guides/dws-processor/supported-languages/php.md)
- [Document-to-image API](/guides/dws-processor/tools-and-api/document-to-image-api.md)
- [Office-to-PDF API](/guides/dws-processor/tools-and-api/office-to-pdf-api.md)
- [DOCX templating API](/guides/dws-processor/tools-and-api/docx-templating-api.md)
- [Image-to-PDF API](/guides/dws-processor/tools-and-api/image-to-pdf-api.md)
- [Tools and APIs](/guides/dws-processor/tools-and-api.md)
- [PDF OCR API](/guides/dws-processor/tools-and-api/pdf-ocr-api.md)
- [PDF security API](/guides/dws-processor/tools-and-api/pdf-security-api.md)
- [Markdown-to-PDF API](/guides/dws-processor/tools-and-api/markdown-to-pdf-api.md)
- [PDF generator API](/guides/dws-processor/tools-and-api/pdf-generator-api.md)
- [PDF-to-image API](/guides/dws-processor/tools-and-api/pdf-to-image-api.md)
- [PDF-to-PDF/A API](/guides/dws-processor/tools-and-api/pdf-to-pdfa-api.md)
- [PDF/UA auto-tagging API](/guides/dws-processor/tools-and-api/pdfua-api.md)
- [PDF watermark API](/guides/dws-processor/tools-and-api/pdf-watermark-api.md)
- [Redaction API](/guides/dws-processor/tools-and-api/redaction-api.md)

