TXT to PDF API

Convert TXT files to PDF files with our TXT to PDF API.



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 200 free credits

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

No document storage

No input or resulting documents are stored on our infrastructure. All files are deleted as soon as a request finishes. Alternatively, check out our self-hosted product.

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.


Ready to try it?

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