PageTranslate
v0.1.3Translate PDF, scanned PDF, DOCX and EPUB files into 70+ languages with the layout kept.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
upload_document Upload a document and get a translation quote
Upload a local PDF (text or scanned), DOCX, EPUB or image (PNG, JPG, WEBP, TIFF, BMP, GIF) to PageTranslate and get the exact price to translate it. Uploading is free and does not start or charge anything. Returns job_id, word count, price and what to do next. Max 100 MB and 1,000 PDF pages; uploads are rate limited per account.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Absolute path of the file on this computer. |
target_language * | string | Language code to translate into, e.g. es, fr, de, it, ja, ko, ar, hi, ru. Special codes: pt (Portugal) or pt-BR (Brazil), zh (Simplified) or zh-TW (Traditional), fil (Filipino), no (Norwegian). |
start_translation Start translating an uploaded document
Start the translation of an uploaded job using the account's word balance (Pro plan words or credits). If the balance does not cover it, nothing is charged and the response carries a payment_url for the user to pay by card; translation then starts by itself.
| Parameter | Type | Description |
|---|---|---|
job_id * | string |
get_translation Get translation status
Get the status, progress, price and payment state of one translation job, and what to do next.
| Parameter | Type | Description |
|---|---|---|
job_id * | string |
list_translations List recent translations
List the account's recent translation jobs, newest first, with status and price.
download_translation Download a finished translation
Save the translated file of a completed job to this computer. It has the same format as the source (PDF, DOCX, EPUB or image). Never overwrites an existing file.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | |
output_dir | string | Folder to save into, usually the source file's folder. Defaults to the server's working directory. |