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
pip install nutrient-dwsnpm install @nutrient-sdk/dws-client-typescript# No installation required.# curl is available by default on most macOS/Linux environments.Example
import asynciofrom 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())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 -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.pdfPrefer a more guided setup (API key, dashboard, more examples)? Follow the getting started guide.
Supported languages
Popular actions
Browse some of our action categories to find the API you need to build a lean document processing workflow.
Generate PDF documents from HTML documents using our PDF generation API.
Convert Word, Excel, and PowerPoint files to PDF with our Office-to-PDF API.
Use our image-to-PDF conversion API to convert JPG, PNG, and TIFF files to PDF.
Use our PDF editor API to merge, split, delete, flatten, and duplicate PDF documents.