PDF Translator API Benefits
The PDF Translator API can translate PDFs to other languages using Machine Learning and an AI-powered translation engine. The Web API gets detailed information about the PDF document including its properties and security information. This makes it possible for the engine to recreate the PDF with the same layout and colors as the output.
Preserve Form and Layout
The PDF Translator API produces a translated PDF with the exact form and layout of the original PDF. The engine gathers the detailed information of the PDF during translation which makes it possible to put them back together in the original document’s replica.
Different Language Support
The PDF Translator API supports over 70+ languages. You can set the original document’s language and the language you want to translate it to. The list of supported languages is available here. For example, you can translate a PDF from German to English and vice-versa.
Web API Supports Multiple Languages
PDF.co platform can be used by software developers from programming languages such as PHP, Javascript, .NET and ASP.NET, C#, Java, Visual Basic, and many others. Find source code samples in our API documentation.
Business Automation Platforms Integrations
If you are not a developer, you can also easily automate your PDF operations via popular business automation platforms: Zapier, Make, Airtable, Salesforce, Google Apps Script, and 300+ more.
PDF Translator API Sample & Demo
In this demonstration, you will see how this PDF language translator works. We will use a PDF Invoice written in English and translate it to German using the /v1/pdf/translate endpoint.
The following are the images of our source PDF Invoice in English and output PDF Invoice in German.
Images of Source PDF Invoice in English and Output PDF Invoice in German
Now that we have seen the result, let’s quickly review the /v1/pdf/translate’s parameters and their corresponding functions.
Endpoint
URL: | https://api.pdf.co/v1/pdf/translate |
Method: | POST |
Parameter | Description |
url | required. Link to the source file. |
langFrom | Set ID of the source language. |
langTo | Set ID of the output language. |
password | optional. The password of the PDF file. |
name | optional. The filename of the generated output. |
encrypt | optional. Enable encryption to the output file. |
async | optional. Runs processing asynchronously. Returns jobId to use with job/check : true or false |
profiles | optional. Must be a String. Set custom configuration. See profiles examples here |
cURL Code Snippet
curl --location --request POST 'https://api.pdf.co/v1/pdf/translate' \ --header 'x-api-key: {{x-api-key}}' \ --header 'Content-Type: application/json' \ --data-raw '{ "url": "https://bytescout-com.s3-us-west-2.amazonaws.com/files/demo-files/cloud-api/pdf-to-csv/sample.pdf", "name": "result-translate-en-to-de", "langFrom": "en", "langto": "de", "async": false }'
Let’s see the PDF Translator API using the cURL code sample above.
You can find cURL code samples for PDF translation here.
PDF Translator API in Action
PDF Translator API works smoothly translating PDF files to English and other supported languages. Translate PDF documents with no hassle and get a structured output with the layout preserved!