Text-to-PDF API for RTF, ODT, and TXT files

Convert Rich Text Format, OpenDocument Text, and plain-text files to PDF with Nutrient DWS Processor API. The endpoint accepts RTF, ODT, and TXT input over REST.

Convert three text formats

Send RTF, ODT, or TXT files to one conversion endpoint and receive PDF output.

Use a standard HTTP request

Upload the source file as request data and save the returned PDF from your backend or document-processing job.

Add conversion to a larger workflow

Use text-to-PDF conversion with other Processor API actions when a workflow needs more than one document-processing step.

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

Try it out

This example converts an RTF file to PDF. The same request accepts ODT and TXT files.


Try it out in three steps

  1. Add an RTF file named document.rtf to your project folder. Use a .odt or .txt file to test another supported format.
  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.rtf

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 →

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 text-to-PDF API?

A text-to-PDF API accepts a text-document file and returns a PDF through an HTTP request. This page covers RTF, ODT, and TXT input.

Which text formats can I convert?

The endpoint accepts RTF, ODT, and TXT files. The code example uses RTF; use the same request shape with an ODT or TXT file for those formats.

How do I convert a text file to PDF programmatically?

Send the source file to the Processor API conversion endpoint as binary request data, then write the returned response to a PDF file.

Which programming languages can call the API?

Any language that can make HTTP requests can call the API. See the getting started guide and test the request with the Postman collection.

How much does the text-to-PDF API cost?

Processor API includes a free tier of 50 credits per month. Free-tier output is watermarked, and no credit card is required. See Processor API pricing for paid plans.

Ready to try it?

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