A simple Python script that translates PDFs for free using Ollama and PyMuPDF.
·
Report Bug
·
Request Feature
This is a very basic but efficient Python program for translating PDFs without touching graphics. I know there are lots of alternatives, but they are priceyyy 🤑 and mostly keep your data 🤗, so this works on your local machine; nothing to worry about.
I was searching for worksheets for my exam, and there is a lack of resources in either English or Turkish; also, I had to keep the layout, so I created this.
I don't have a roadmap for this project, but I uploaded it to this platform in case it helps someone, and anyone who wants to deal with it can take it and run it on a server and open a website or something.
Table of Contents
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
This is an example of how to list things you need to use the software and how to install them.
- Ollama installation
ollama run [your model]
-
Clone the repo
git clone https://github.com/emirbartu/ollama-pdf-translator.git
-
pip install -r requirements.txt
-
python main.py input.pdf -o translated.pdf -s English -t Spanish
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
Distributed under the MIT licence.
Emir Bartu Ekinci - bartuekinci42@gmail.com