Skip to main content

PDF Translation API

Easily translate PDF documents using the Google Cloud Translation API.

PyPI - Version PyPI - Python Version


Installation and Usage

pip install pdf-translation-api

Make sure to set the GOOGLE_APPLICATION_CREDENTIALS environment variable to the path of your service account key file. Check the Google Cloud Translation API documentation for more information.

from pdf_translation_api import translate_document

output_path = translate_document(
    path="path/to/your/document.pdf",
    target_lang="nl",
)
print(output_path)
>>> path/to/your/document.nl.pdf

[!WARNING]
Google Cloud Translation API charges for usage. Make sure to check the pricing before using this library.

Upcoming Features

  • Support for files with more than 20 pages

License

pdf-translation-api is distributed under the terms of the MIT license.

Metadata

Release files for pdf-translation-api 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdf-translation-api 0.1.3
File Size Uploaded
pdf_translation_api-0.1.3.tar.gz 18.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pdf-translation-api 0.1.3
File Interpreter ABI Platform
pdf_translation_api-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 22.7 kB

Release files / pdf_translation_api-0.1.3.tar.gz

Download URL pdf_translation_api-0.1.3.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
515d33733ca1b3dd1466bc1cd8cdab6ab023e3334f66052132110adc346d46dc
BLAKE2b-256 checksum
How to use checksums
1b2958c91e12aae97567c2d661d4f3f33095770854d4dc826fc92d50ec8524bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.27.0

Release files / pdf_translation_api-0.1.3-py3-none-any.whl

Download URL pdf_translation_api-0.1.3-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
421ccc905656b08980a0b6bdee05500fc372a9768bbc9a24a5c6320371eeea79
BLAKE2b-256 checksum
How to use checksums
c76a187674ce6c45a24045e412268815a876dfa50a21a91e0ca12698ed566416
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.27.0

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page