TXT-to-PDF API for text-file conversion workflows

Use Nutrient DWS to convert TXT text files into PDF documents when the workflow needs simple text content packaged into stable PDF output. Start with a cloud TXT-to-PDF API built for notes, text exports, plain-text reporting, and document-generation workflows.

Convert TXT files into PDF documents

Use a TXT-to-PDF API when the workflow needs plain-text content packaged into PDF output for delivery, reporting, printing, or archival use cases.

Built for API-driven text conversion

Use REST, Postman, JavaScript, Python, Java, C#, PHP, or HTTP to automate TXT-to-PDF conversion inside export, reporting, and document-generation systems.

Fast path from evaluation to implementation

Connect TXT conversion to getting started, pricing, and the broader PDF converter hub so teams can validate the right conversion path quickly.

Used by Lufthansa, Disney, Autodesk, UBS, Dropbox, IBM
Lufthansa
Disney
Autodesk
UBS
Dropbox
IBM

Try it out

This example will convert your uploaded TXT file to a PDF.


Try it out in three steps

  1. Add a TXT file named document.txt to your project folder.
  2. Run the code from the same folder.
  3. Open result.pdf to see the output.
curl -X POST https://api.nutrient.io/processor/convert_to_pdf \
-H "Content-Type: application/octet-stream" \
-H "Authorization: Bearer your_api_key_here" \
-o result.pdf \
--fail \
--data-binary @document.txt

Start now

Create an account to access your API key and start with 50 free credits per month

Start building with DWS Processor API in minutes — no payment information required.

Already have an account? Sign in →

API comparison

BASIC

Convert to PDF API

Straightforward API for converting to PDF. Perfect for most use cases.


FEATURES

  • Simple request format
  • Minimal configuration required
  • Purpose-built for specific tasks
ADVANCED

Build API

Maximum flexibility and advanced features for complex workflows.


FEATURES

  • Multipart document support
  • Advanced actions and transformations
  • Workflow orchestration

Security is our top priority

SOC 2 Type 2 audited

Nutrient’s infrastructure is SOC 2 Type 2 audited and GDPR-compliant. See our privacy policy and security documentation for details on data handling.

HTTPS encryption

All communication between your application and Nutrient is done via HTTPS to ensure your data is encrypted when it’s sent to us.

Safe payment processing

All payments are handled by Paddle. Nutrient DWS Processor API never has direct access to any of your payment data.

Frequently asked questions

What is a TXT-to-PDF API?

A TXT-to-PDF API converts plain text files into PDF documents with a single API call. With Nutrient’s DWS Processor API, you can turn logs, exports, and raw text into formatted PDFs without your own conversion code.

How do I convert text to PDF programmatically?

Send your TXT file to the Nutrient DWS Processor API, and it returns a PDF. You can call it via REST, Postman, curl, JavaScript, Python, Java, C#, or PHP.

Is text layout and pagination handled automatically?

Yes. The text content is laid out and paginated into a standards-compliant PDF, so long text files are split across pages without manual formatting.

Which programming languages does the API support?

You can call the API from any language that can make HTTP requests. We provide quick start examples for JavaScript, Python, Java, C# (.NET), and PHP, plus REST and a Postman collection.

Is there a free TXT-to-PDF API?

Yes. You can start for free — sign up to receive processing credits and try the TXT-to-PDF API before choosing a Processor API plan.

Ready to try it?

Create an account to get your DWS Processor API key and start making API calls.