$0.10 / page Experimental

PDF translation API for 13 languages

Send a PDF and a target language to one REST endpoint and get a translated PDF back, page for page. Pages with a text layer keep their layout, scanned pages are recognized and then translated, and AI model usage is included in the per-page price.

One call, a translated PDF

Send a PDF and a target language and get the translated PDF back. No extracting the text, translating it elsewhere, and rebuilding the document by hand. Long translations can run in the background.

Page-for-page output

The translated PDF has the same pages as the original, so page references still point to the right place. Pages with a text layer keep their layout, and text inside their pictures is translated too.

Priced per translated page

One flat price per translated page. The cost of the AI model is included, so there’s no separate usage-based AI bill to estimate. Translations that fail or time out aren’t charged.

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

Translate a PDF in one request

This sample translates a PDF into German. To translate into another language, change targetLanguage to one of the 13 supported language codes.


Try it in three steps

  1. Save a PDF as document.pdf in the project folder.
  2. Run the code from the same folder. A translation can take several minutes, so keep the HTTP timeout above 10 minutes.
  3. Open translated.pdf to see the result. A test API key returns a placeholder PDF instead of a translation.
curl -X POST https://api.nutrient.io/processor/translate \
-H "Authorization: Bearer your_api_key_here" \
-F file=@document.pdf \
-F data='{"targetLanguage": "de"}' \
-o translated.pdf

Start now

Create an account to access your API key and start with $5 of free usage every month

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

Already have an account? Sign in →

What the PDF translation API handles

Born-digital reports, scanned contracts, and image-heavy manuals go through the same endpoint, with a few options for how the output should look.

Text-based PDFs

Text is translated, and each page with a text layer keeps its layout.

Scanned PDFs

Scanned pages are recognized first and then translated, so image-only PDFs can be translated through the same call.

Text in pictures

On pages with a text layer, text inside pictures is translated too. One option turns this off.

Right-to-left output

Translations into Arabic mirror the layout of pages with a text layer so they read right to left. One option keeps the original direction.

13 target languages

Arabic, Chinese (Simplified), Dutch, English, French, German, Greek, Italian, Japanese, Polish, Portuguese, Russian, and Spanish.

Reported partial results

If a block of text can’t be translated, it keeps its original text, and the response reports how many blocks were left untranslated so an application can flag the document for review.


PDF translation API FAQs

A PDF translation API takes a PDF and a target language and returns the translated document as a PDF. Nutrient’s PDF translation API is an endpoint of the DWS Processor API: Send a PDF to /processor/translate, and the API translates its text with an AI model and returns a PDF with the same number of pages.

Arabic, Chinese (Simplified), Dutch, English, French, German, Greek, Italian, Japanese, Polish, Portuguese, Russian, and Spanish. The API detects the source language automatically, so a request only needs the target language as an ISO 639-1 code, such as de for German. The PDF translation guide lists every code.

The translated PDF always has the same number of pages as the original. Pages with a text layer keep their layout, and text inside their pictures is translated as well. Scanned pages are recognized first and then translated. For translations into Arabic, pages with a text layer are mirrored so they read right to left, and an option turns the mirroring off.

If a block of text fails validation, it keeps its original text, and the request still succeeds. The X-Nutrient-Untranslated-Blocks response header, or untranslatedBlocks in the status of an asynchronous run, gives the number of blocks left in the source language, so an application can flag the document for review. The request is charged as a completed translation.

PDF translation costs $0.10 per page of the translated PDF. The price includes the cost of the AI model, so there’s no separate charge for model usage, and translations that fail or time out aren’t charged. Requests are charged to the plan’s monthly usage first and then to the wallet. See API pricing for plans.

The API runs in production, and every organization can use it. It’s part of the Processor API, so it uses the same API keys and is billed to the same plan. Nutrient is still improving it, so its request options, its output, and its price can change. The PDF translation guide documents the current options.

A document can have up to 50 pages. A translation can take several minutes, and a synchronous request fails if it doesn’t finish within 10 minutes. For longer documents, start an asynchronous run with the Prefer: respond-async header, check its status, and download the PDF when the run is done. The result stays available for 24 hours after the run finishes.

No. Translation has its own endpoint, /processor/translate. To compress, watermark, or otherwise process the translated PDF, send it to the /build endpoint of the Processor API in a second request.

Any language that can send a multipart HTTP request. The samples on this page use curl and Python, and the PDF translation guide covers request options, asynchronous runs, and errors. The REST API reference documents every parameter and response.

Requests run over HTTPS. To translate a document, the API sends its text to an AI model. It also sends images of scanned pages. Pictures on pages with a text layer are sent too, unless translateTextInImages is false. An asynchronous run stores the input PDF and the result. Only the organization that started the run can read its status and download the result, and only for 24 hours after the run finishes. After a grace period, both files are deleted, and Nutrient doesn’t keep them for any other use. The privacy and security guides cover how Nutrient handles documents.

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.

Ready to try it?

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