Skip to content
/ html2pdf Public
forked from optional-is/html2pdf

PDF generation as a Service (PaaS) for posting HTML and getting back a PDF

Notifications You must be signed in to change notification settings

soby/html2pdf

 
 

Repository files navigation

= html2pdf =

Easily convert HTML into a PDF.

Deploy locally or on a server to create a PDF service.

Clone this reposity locally. To run this locally, install PhantomJS first.

Next, you need to run:

virtualenv --distribute venv

This will create a directory for all your virtual files. Next activate the virtual enviornment by typing:

source venv/bin/activate

Once you are activated, you need to install all the dependencies by typing:

pip install -r requirements.txt

This will install all the needed files and other code.

Then you can type:

python run.py

This will run the flask server on https://0.0.0.0:5000 by default.

If you want to learn more about deploying this on heroku, you can read:

https://optional.is/required/2014/06/12/pdf-creation-from-html-service/

Requires heroku buildpacks:set https://github.com/heroku/heroku-buildpack-multi.git

You can also automatically deploy to Heroku by clicking the button Deploy

About

PDF generation as a Service (PaaS) for posting HTML and getting back a PDF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 68.6%
  • Python 25.0%
  • HTML 6.4%