Coder Social home page Coder Social logo

django-rest2pdf's Introduction

Django PDF Creation
===================

http://docs.djangoproject.com/en/1.1/howto/outputting-pdf/#howto-outputting-pdf
documents a means of generating PDFs with Django. However, putting text 
on a page takes a lot of coding effort using the ReportLab API directly.

reStructuredText is now the formatting approach behind a lot of Python
documentation and tools (e.g. Sphinx) and a library (rst2pdf) now 
exists to translated reStucturedText to PDF directly, with helpful 
features such as hyperlinked table of contents automatically generated.

This application uses Django templates to generate a reStructuredText 
intermediary file from model content, and then rst2pdf converts that 
text into a pdf file, returning it in an http response object.

The installation requirements and instructions are in the INSTALL file.
See the docs directory for further information.

django-rest2pdf's People

Contributors

rctay avatar rhouse2 avatar

django-rest2pdf's Issues

[pull request] customize arguments to rst2pdf.createpdf.RstToPdf()

Hi,

I've pushed out some changes to my fork. The first 3 are minor changes that 
don't change any behaviour; the last one implements the said feature:

  http://code.google.com/r/rctay89-django-rest2pdf/source/detail?
r=b12001773980f0fab2c6ffaf55caa1153c99373f

This lets users add/change arguments to `rst2pdf.createpdf.RstToPdf()` with 
the argument `rst_to_pdf_args`.

I've also added a short paragraph in quickstart.

Original issue reported on code.google.com by [email protected] on 21 Mar 2010 at 8:01

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.