Skip to content

shie-ld/textwritten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues MIT License LinkedIn


Textwritten

Convert text file to handwritten pdf

Report Bug · Request Feature

Table of Contents

About The Project

Screen shot

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.

Here's why:

  • 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.

Built With

Getting Started

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.

Prerequisites

  • 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.

Installation

  1. Clone the repo
git clone https://github.com/shie-ld/textwritten.git
  1. Install required modules
cd src
pip install -r requirements.txt
  1. 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**

  1. Run the textwritten.py in the source folder with correct options and arguments.

Usage

Using Jupyter Notebook:

INPUT_FILE = 'infile.txt'
OUTPUT_FILE = 'outfile.pdf'

main()

Using CommandLine:

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:

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

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.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Project Link: https://github.com/shie-ld/textwritten

Rudresh Dixit : [email protected]

About

Convert text file to handwritten pdf file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published