PDF Translate
Related Knowledgebase-Explore Samples
Get detailed information about the PDF document, it’s properties and security permissions.
For one-time check of PDF file information (including pdf form fields information if any) you can also use this page: https://app.pdf.co/pdf-info.
Available Methods
[POST] /pdf/translate
Translates PDF document to another language using Machine Learning and AI powered translation engine. Generated PDF with the same layout and colors as output.
NOTE: by default translation is limited to the very first page. Use pages
param to set another range of pages to translate.
url
required. URL to the source file. Supports links from Google Drive, Dropbox and from built-in PDF.co files storage. For uploading files via API please check Files Upload section. If you are randomly gettingToo Many Requests
orAccess Denied
error for your input url, please try to addcache:
to enable built-in url caching. You can also encrypt data for output files and decrypt data input files with user-controlled data encryption (uses strongAES
encryption with your own keys). Click here to learn more.httpusername
(optional) - http auth user name if required to access sourceurl
.httppassword
(optional) - http auth password if required to access sourceurl
.langFrom
defines ID of the source language (see the list of available languages below). String. Default isen
(English)langTo
defines ID of the target language (see the list of available languages below). String. Required.profiles
optional. Must be a String. Use this parameter to set additional configuration for fine tuning and extra options. Explore PDF.co knowledgebase for profile examples.password
optional. Password of PDF file. Must be a Stringasync
optional. Runs processing asynchronously. ReturnsJobId
that you may use with/job/check
to check state of the background job (possible states:working
,failed
,aborted
andsuccess
). Must be one of:true
,false
.name
optional. File name for generated output. Must be a String.expiration
(optional). Output link expiration in minutes. Default is60
(i.e. 60 minutes or 1 hour). After this delay generated output file(s) (if any) will be auto-removed from PDF.co temporary files storage. Max allowed expiration period depends on your current subscriptio0n plan. To store permanent input files (e.g. re-usable images, pdf, documents), please use PDF.co built-in Files Storage instead.profiles
optional. Must be a String. Use this parameter to set additional configuration for fine tuning and extra options. Explore PDF.co knowledgebase for profile examples.
The List of Supported Languages
Language | Id |
---|---|
Afrikaans | af |
Albanian | sq |
Amharic | am |
Arabic | ar |
Armenian | hy |
Azerbaijani | az |
Bengali | bn |
Bosnian | bs |
Bulgarian | bg |
Catalan | ca |
Chinese (Simplified) | zh |
Chinese (Traditional) | zh-TW |
Croatian | hr |
Czech | cs |
Danish | da |
Dari | fa-AF |
Dutch | nl |
English | en |
Estonian | et |
Farsi (Persian) | fa |
Filipino Tagalog | tl |
Finnish | fi |
French | fr |
French (Canada) | fr-CA |
Georgian | ka |
German | de |
Greek | el |
Gujarati | gu |
Haitian Creole | ht |
Hausa | ha |
Hebrew | he |
Hindi | hi |
Hungarian | hu |
Icelandic | is |
Indonesian | id |
Italian | it |
Japanese | ja |
Kannada | kn |
Kazakh | kk |
Korean | ko |
Latvian | lv |
Lithuanian | lt |
Macedonian | mk |
Malay | ms |
Malayalam | ml |
Maltese | mt |
Mongolian | mn |
Norwegian | no |
Persian | fa |
Pashto | ps |
Polish | pl |
Portuguese | pt |
Romanian | ro |
Russian | ru |
Serbian | sr |
Sinhala | si |
Slovak | sk |
Slovenian | sl |
Somali | so |
Spanish | es |
Spanish (Mexico) | es-MX |
Swahili | sw |
Swedish | sv |
Tagalog | tl |
Tamil | ta |
Telugu | te |
Thai | th |
Turkish | tr |
Ukrainian | uk |
Urdu | ur |
Uzbek | uz |
Vietnamese | vi |
Welsh | cy |
- Method: POST
- URL: /v1/pdf/translate
Query parameters
No query parameters accepted.
Body payload
{
"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
}
Example responses
/pdf/translate
{
"url": "https://pdf-temp-files.s3.amazonaws.com/24a27afaaef94fb096a5bc45c9792129/result-translate-en-to-de.pdf",
"pageCount": 1,
"error": false,
"status": 200,
"name": "result-translate-en-to-de",
"remainingCredits": 616467,
"credits": 700
}
Code Snippet
CURL
curl --location --request POST 'https://api.pdf.co/v1/pdf/translate' \
--header 'x-api-key: ' \
--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
}'
Knowledgebase
Samples
- C# - Translate PDF From URL
- C# - Translate PDF From URL Asynchronously
- C# - Translate PDF From Uploaded File
- cURL - Translate PDF Document
Copyright © 2016 - 2023 PDF.co