Skip to content

emirbartu/ollama-pdf-translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation


Ollama PDF Translator

A simple Python script that translates PDFs for free using Ollama and PyMuPDF.
· Report Bug · Request Feature

What is this

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
  1. Getting Started
  2. Usage
  3. Contributing
  4. License
  5. Contact

Getting Started

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.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

Installation

  1. Clone the repo

    git clone https://github.com/emirbartu/ollama-pdf-translator.git
  2. venv setup

  3.  pip install -r requirements.txt

(back to top)

Usage

  1.  python main.py input.pdf -o translated.pdf -s English -t Spanish

(back to top)

Contributing

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!

(back to top)

License

Distributed under the MIT licence.

(back to top)

Contact

Emir Bartu Ekinci - bartuekinci42@gmail.com

(back to top)

About

PDF translator with keeps graphics of PDF, just translates text.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages