Download link for wkhtmltopdf - https://wkhtmltopdf.org/downloads.html
for HTML to PDF conversion with pdfkit python.
The first thing to do is to clone the repository in your project folder:
$ git clone https://github.com/Sachindesai2213/pdfreader.git
$ cd pdfreader
Create a virtual environment to install dependencies in and activate it:
Then install the dependencies:
(env)$ pip install -r requirements.txt
Note the (env)
in front of the prompt. This indicates that this terminal
session operates in a virtual environment set up by virtualenv
.
Once pip
has finished downloading the dependencies:
(env)$ python manage.py runserver
And navigate to http://127.0.0.1:8000
.
Mechanism:
- Upload PDF File in the file field when you need to read data from.
- The files generated with updates made are saved in media folder.
- The updated data gets send to the frontend and gets displayed in the DxDatagrid.