Skip to content

Daiech/django-HTMLtoPDF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Html to PDF

A simple Django app to create PDF files from Html using xhtml2pdf.

Detailed documentation is in the "docs" directory.

# Instalation

  1. Download source from Github:

    git clone git@github.com:Daiech/django-HTMLtoPDF.git

  2. Enter to django_htmlToPDF directory and run:

    python setup.py install pip install -r requirements.py

# Quick start

  1. Add "django_htmlToPDF" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = (
        ...
        'django_htmlToPDF',
    )
  2. Include the polls URLconf in your project urls.py like this:

    url(r'^pdf/', include("django_htmlToPDF.urls")),
  3. django_htmlToPDF needs HTTP POST method to run, be sure to send a POST method with two params:

    pdf_name : The name for your PDF file (optional) html_data : The html you want to convert to pdf

About

A simple Django app to create PDF files from Html using xhtml2pdf

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages