wiki:BluePrint/PDF

BluePrint: PDF Generation

This page is a collection of notes on PDF generation that were previously scatter around a number of other pages.

ReportLab

For more formal reports (which can also be retrieved via webservices using the PDF representation of the REST Controller), we currently use ReportLab. This also supports Graphics (via PIL)

How to set up a new PDF file

You need to edit your pdf-defs.tcl file to include the new type in pdf_generate_pdf. Also create a new pdf-xxx.py Python file, and set it up as you like it. That's basically it.

OCR

PDF Tasks

From Haiti Response - are these still current?

  • Fix the base PDF generation in models/01_RESTlike_controller.py's export_pdf() as they currently look awful (& hence aren't exposed to users by hiding it in views/formats.html)!
    • /module/resource.pdf
  • Provide a Filter option exposed to users so they can print just the Contacts for a particular Organisation
    • Ideally a generic routine, but then a custom one can be added via response.s3.formats.pdf variable being set in the Controller before invoking the shn_rest_controller() to make it really pretty

See:

Other Tools


BluePrints

Last modified 13 years ago Last modified on 01/08/12 21:28:15
Note: See TracWiki for help on using the wiki.