All Projects → nigma → Django Easy Pdf

nigma / Django Easy Pdf

Licence: mit
PDF views, the easy way

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Django Easy Pdf

Asciidoctor Web Pdf
Convert AsciiDoc documents to PDF using web technologies
Stars: ✭ 219 (-32.41%)
Mutual labels:  pdf, pdf-generation
Recipes
Django application for managing recipes
Stars: ✭ 695 (+114.51%)
Mutual labels:  django, pdf
Pdf Lib
Create and modify PDF documents in any JavaScript environment
Stars: ✭ 3,426 (+957.41%)
Mutual labels:  pdf, pdf-generation
Resumake.io
📝 A website for automatically generating elegant LaTeX resumes.
Stars: ✭ 2,277 (+602.78%)
Mutual labels:  pdf, pdf-generation
Django Hardcopy
Render PDFs from HTML in Python/Django using Headless Chrome
Stars: ✭ 119 (-63.27%)
Mutual labels:  django, pdf-generation
Markdown Pdf
📄 Markdown to PDF converter
Stars: ✭ 2,365 (+629.94%)
Mutual labels:  pdf, pdf-generation
Android Pdfmyxml
convert android xml layouts into PDF document, works on all versions of Android.
Stars: ✭ 231 (-28.7%)
Mutual labels:  pdf, pdf-generation
Reportbro Designer
Javascript plugin to visually design report layouts (for pdf and Excel) which can be created with reportbro-lib (a Python package) on the server.
Stars: ✭ 160 (-50.62%)
Mutual labels:  pdf, pdf-generation
Pyreportjasper
Python Reporting with JasperReports
Stars: ✭ 77 (-76.23%)
Mutual labels:  django, pdf
Papermerge
Open Source Document Management System for Digital Archives (Scanned Documents)
Stars: ✭ 1,177 (+263.27%)
Mutual labels:  django, pdf
Chrome Headless Render Pdf
Stars: ✭ 164 (-49.38%)
Mutual labels:  pdf, pdf-generation
Hummusrecipe
A powerful PDF tool for NodeJS based on HummusJS.
Stars: ✭ 274 (-15.43%)
Mutual labels:  pdf, pdf-generation
Wasm Pdf
Generate PDF files with JavaScript and WASM (WebAssembly)
Stars: ✭ 163 (-49.69%)
Mutual labels:  pdf, pdf-generation
Pdfgen
Simple C PDF Writer/Generation library
Stars: ✭ 200 (-38.27%)
Mutual labels:  pdf, pdf-generation
Openpdf
OpenPDF is a free Java library for creating and editing PDF files with a LGPL and MPL open source license. OpenPDF is based on a fork of iText. We welcome contributions from other developers. Please feel free to submit pull-requests and bugreports to this GitHub repository. ⛺
Stars: ✭ 2,174 (+570.99%)
Mutual labels:  pdf, pdf-generation
Pdf Bot
🤖 A Node queue API for generating PDFs using headless Chrome. Comes with a CLI, S3 storage and webhooks for notifying subscribers about generated PDFs
Stars: ✭ 2,551 (+687.35%)
Mutual labels:  pdf, pdf-generation
Svglib
Read SVG files and convert them to other formats.
Stars: ✭ 139 (-57.1%)
Mutual labels:  pdf, pdf-generation
Doctron
Docker-powered html convert to pdf(html2pdf), html to image(html2image like jpeg,png),which using chrome(golang) kernel, add watermarks to pdf, convert pdf to images etc.
Stars: ✭ 141 (-56.48%)
Mutual labels:  pdf, pdf-generation
Booktype
Booktype is a free, open source platform that produces beautiful, engaging books formatted for print, Amazon, iBooks and almost any ereader within minutes.
Stars: ✭ 810 (+150%)
Mutual labels:  django, pdf
Mayan Edms
Free Open Source Document Management System (mirror, no pull request or issues)
Stars: ✭ 226 (-30.25%)
Mutual labels:  django, pdf

Django PDF rendering

Django PDF rendering, the easy way.

.. image:: https://circleci.com/gh/nigma/django-easy-pdf/tree/master.svg?style=svg :target: https://circleci.com/gh/nigma/django-easy-pdf/tree/master :alt: Build Status .. image:: https://img.shields.io/pypi/v/django-easy-pdf.svg :target: https://pypi.python.org/pypi/django-easy-pdf/ :alt: Latest Version .. image:: https://img.shields.io/badge/wheel-yes-green.svg :target: https://pypi.python.org/pypi/django-easy-pdf/ :alt: Wheel .. image:: https://img.shields.io/pypi/l/django-easy-pdf.svg :target: https://pypi.python.org/pypi/django-easy-pdf/ :alt: License

Developed at en.ig.ma software shop <http://en.ig.ma>_.

Development Version

Note: A new PDF rendering backend using WeasyPrint for more accurate rendering is in development under the develop branch. See https://github.com/nigma/django-easy-pdf/pull/34 for changes, testing and discussion.

If you rely on the xhtml2pdf rendering backend and templates pin the package version to django-easy-pdf>=0.1.1<0.2.0.

Overview

This app makes rendering PDF files in Django really easy. It can be used to create invoices, bills and other documents from simple HTML markup and CSS styles. You can even embed images and use custom fonts.

The library provides both Class-Based View that is almost a drop-in replacement for Django's TemplateView as well as helper functions to render PDFs in the backend outside the request scope (i.e. using Celery workers).

Quickstart

  1. Include django-easy-pdf, xhtml2pdf in your requirements.txt file. If you are on Python 3 you need to install the latest version of Reportlab and the beta version of xhtml2pdf::

    $ pip install xhtml2pdf>=0.2b1

  2. Add easy_pdf to INSTALLED_APPS.

  3. Create HTML template for PDF document and add a view that will render it:

    .. code-block:: css+django

     {% extends "easy_pdf/base.html" %}
    
     {% block content %}
         <div id="content">
             <h1>Hi there!</h1>
         </div>
     {% endblock %}
    

    .. code-block:: python

     from easy_pdf.views import PDFTemplateView
    
     class HelloPDFView(PDFTemplateView):
         template_name = 'hello.html'
    
  4. You can also use a mixin to output PDF from Django generic views:

    .. code-block:: python

     class PDFUserDetailView(PDFTemplateResponseMixin, DetailView):
         model = get_user_model()
         template_name = 'user_detail.html'
    

Documentation

The full documentation is at django-easy-pdf.readthedocs.io <https://django-easy-pdf.readthedocs.io/>_.

A live demo is at easy-pdf.herokuapp.com <https://easy-pdf.herokuapp.com/>_. You can run it locally after installing dependencies by running python demo.py script from the cloned repository or through Docker with make demo.

Dependencies

django-easy-pdf depends on:

- ``django>=1.10``
- ``xhtml2pdf>=0.2b1``
- ``reportlab``

License

django-easy-pdf is released under the MIT license.

Other Resources

Commercial Support

This app and many other help us build better software and focus on delivering quality projects faster. We would love to help you with your next project so get in touch by dropping an email at [email protected].

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].