New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pdf-translation-api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdf-translation-api

Utility to translate PDF files using Google Cloud Translate API

  • 0.1.3
  • Source
  • PyPI
  • Socket score

Maintainers
1

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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc