Convert text file to handwritten pdf
Report Bug
·
Request Feature
Hey friends, did you get bombarded by a lot of school assignments during this era of 'online education'? And you want to escape and do away from those stubborn professors who regularly threatens you of assignment deadlines?
Or you want to save some of your precious time doing something productive rather than just copying something from internet and pasting it in your handwriting for just the sake of some marks. Then this project is for you.
- Your time should be focused on creating something amazing. A project that solves a problem and helps others.
- You shouldn't be doing the same tasks over and over like writing assignments.
- So this project aims at taking input as a text file and generating a brand new handwritten pdf file from it.
Of course, this project is highly documented for your convenience so that you can tweak it as you wish. You may also suggest changes by forking this repo and creating a pull request or opening an issue.
Grab a python3 distribution and run the source code with the help of jupyter notebook. Both of these get set up if you install anaconda distribution on your system.
**OR**
Just install any python3 distribution, install the dependencies and run textwritten.py
in the src
folder.
- path.py
- numpy
- Pillow
After installing anaconda, run in the src
directory
pip install -r requirements.txt
in your terminal to install all the required dependencies and modules. Else they get installed automatically if you run the ipython notebook.
- Clone the repo
git clone https://github.com/shie-ld/textwritten.git
- Install required modules
cd src
pip install -r requirements.txt
- Run the ipython notebook in
src
folder
Don't forget to put in the INPUT_FILE
from which you want to generate pdf and resulting OUTPUT_FILE
just above the main()
function in the end of the notebook. . Check current directory and viola, you have generated the required pdf.
**OR**
- Run the
textwritten.py
in the source folder with correct options and arguments.
INPUT_FILE = 'infile.txt'
OUTPUT_FILE = 'outfile.pdf'
main()
OPTIONS
-i | --input : specify the input text file, required
-o | --output : specify the output pdf file, default is out.pdf
So practical usage will look like:
# cloning the repo in your machine
git clone https://github.com/shie-ld/textwritten.git
cd textwritten/src
pip install -r requirements.txt
python3 textwritten.py -i hello.txt -o output.pdf
And you are good to go:smile:
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Project Link: https://github.com/shie-ld/textwritten
Rudresh Dixit : [email protected]