Link Search Menu Expand Document

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 getting Too Many Requests or Access Denied error for your input url, please try to add cache: 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 strong AES encryption with your own keys). Click here to learn more.
  • httpusername (optional) - http auth user name if required to access source url.
  • httppassword (optional) - http auth password if required to access source url.
  • langFrom defines ID of the source language (see the list of available languages below). String. Default is en (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 param 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 String
  • async optional. Runs processing asynchronously. Returns Use JobId that you may use with /job/check to check state of the processing (possible states: working, failed, aborted and success). Must be one of: true, false.
  • encrypt (legacy, now all files are stored at the encrypted cloud storage by default.
  • name optional. File name for generated output. Must be a String.
  • expiration (optional). Output link expiration in minutes. Default is 60 (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 param to set additional configuration for fine tuning and extra options. Explore PDF.co knowledgebase for profile examples.

The List of Supported Languages

LanguageId
Afrikaansaf
Albaniansq
Amharicam
Arabicar
Armenianhy
Azerbaijaniaz
Bengalibn
Bosnianbs
Bulgarianbg
Catalanca
Chinese (Simplified)zh
Chinese (Traditional)zh-TW
Croatianhr
Czechcs
Danishda
Darifa-AF
Dutchnl
Englishen
Estonianet
Farsi (Persian)fa
Filipino Tagalogtl
Finnishfi
Frenchfr
French (Canada)fr-CA
Georgianka
Germande
Greekel
Gujaratigu
Haitian Creoleht
Hausaha
Hebrewhe
Hindihi
Hungarianhu
Icelandicis
Indonesianid
Italianit
Japaneseja
Kannadakn
Kazakhkk
Koreanko
Latvianlv
Lithuanianlt
Macedonianmk
Malayms
Malayalamml
Maltesemt
Mongolianmn
Norwegianno
Persianfa
Pashtops
Polishpl
Portuguesept
Romanianro
Russianru
Serbiansr
Sinhalasi
Slovaksk
Sloveniansl
Somaliso
Spanishes
Spanish (Mexico)es-MX
Swahilisw
Swedishsv
Tagalogtl
Tamilta
Telugute
Thaith
Turkishtr
Ukrainianuk
Urduur
Uzbekuz
Vietnamesevi
Welshcy
  • 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