Changes between Version 1 and Version 2 of BluePrint/PDF


Ignore:
Timestamp:
01/08/12 21:28:15 (10 years ago)
Author:
Michael Howden
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BluePrint/PDF

    v1 v2  
    11[[TOC]]
    22= !BluePrint: PDF Generation =
     3This page is a collection of notes on PDF generation that were previously scatter around a number of other pages.
    34
    4 === PDF ===
     5== !ReportLab ==
    56For more formal reports (which can also be retrieved via webservices using the PDF representation of the REST Controller), we currently use [http://reportlab.org ReportLab]. This also supports Graphics (via [http://www.pythonware.com/products/pil/ PIL])
    67
    7   10:44:51      lifeeth:         I used raw reportlab to make the OCR forms :|
    8   http://logs.qgis.org/sahana/%23sahana.2010-01-15.log
     8=== How to set up a new PDF file ===
     9You 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.
     10* http://www.reportlab.com/software/opensource/
     11* http://www.reportlab.com/software/opensource/rl-toolkit/ (open source version)
    912
     13== OCR ==
     14* BluePrintOCR
     15* [wiki:BluePrint/OCRIntegration]
     16* [wiki:UserGuidelines/OCR]
    1017
    11 How to set up a new PDF file
    12 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.
    13 
    14 
    15 http://www.reportlab.com/software/opensource/
    16 
    17 http://www.reportlab.com/software/opensource/rl-toolkit/
    18 open source version
    19 
    20 
    21 [wiki:Haiti]
    22 == Haiti PDF ==
    23 
    24 flavour coordinating
    25 
     18== PDF Tasks ==
     19''From Haiti Response - are these still current?''
    2620 * 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}}})!
    2721  * /module/resource.pdf
     
    3630   * We do this already for the OCR PDF generation.
    3731
    38 NB We're currently having [http://pastebin.com/d3ac2aad1 problems] getting Geraldo (0.3.6 & 0.3.9) working on Prod Debian server at all, so test offline on your own instance for now...works fine on my local Win32
    39 
    40 ----
    41 [wiki:Haiti]
    42 
    43 
    44 
    45 
    46 
    47 
    48 
    49 
    50 
    51 
    52 
    53 
    54 
    55 
    56 
    57 == Introduction ==
    58 <Introduce the problem the solution is meant for>
    59 <Explain why this could be relevant for Eden>
    60 
    61 == Description ==
    62 <Briefly describe the solution, e.g. start with a user story>
    63 <Name existing solutions, e.g. in other applications>
    64 
    65 == Requirements ==
    66 <Outline the requirements here>
    67 <Group requirements in subsections, e.g. functional, non-functional, interoperability etc.>
    68 
    69 == Use-Cases ==
    70 <Describe actors and use-cases>
    71 <Describe workflows>
    72 <Include diagrams where useful>
    73 
    74 == Design ==
    75 <Describe a possible design, repeat any design sections for alternative designs>
    76 <Include diagrams, screen mockups and wireframes where useful>
    77 
    78 == Implementation ==
    79 <Leave open for a list of implementation>
    80 
    81 == References ==
    82 <Links to external resources>
     32=== Other Tools ===
     33 * [http://www.xhtml2pdf.com Pisa] uses [http://reportlab.org ReportLab] to generate PDF from HTML
     34 * [http://code.google.com/p/jspdf jsPDF] uses pure !JavaScript to create PDFs
     35 * [http://geraldo.sourceforge.net Geraldo] builds on !ReportLab, and we used to use this, but no longer
     36 * Use S3XRC & hence XSLT to generate XML-FO which can be converted to PDF
     37  * http://xmlgraphics.apache.org/fop/
     38  * http://pypi.python.org/pypi/zopyx.convert/
     39  * [http://osdir.com/ml/python.reportlab.user/2003-10/msg00206.html Recommend ReportLab over FOP]
    8340
    8441----