{i} If you are looking for a working PDF generator visit ActionMarket/PdfAction.

PdfLetter

Produces a letter in html and pdf.

As I am new to wiki(and MoinMoin), this is my test for learning MoinMoin. If you read the code and say to yourself what is this guy doing, please point me in the right direction. I will put it up at ProcessorMarket when I think its usable.


I didn't try it out yet, but the code looks quite ok. A few small issues:

Fixed the indention and the bug, Thanks - FredrikBjornsson


I made the script running under Python 2.3 and MoinMoin 1.3 with two minor changes

-- Robert Groenewegen 2005-01-06 13:11:18


Install

Example

{ { {#!PdfLetter
TO = 
Foo Fooson
Foostreet 1
1234 Foocity

FROM = Fredrik Fredrikson
Fredriksstreet 1
4321 Fredrikscity

DATE = 2004-08-10
SUBJECT = About your foo and the other thing

BODY = 
Blaha and blaha did some blaha with blaha.Blaha and blaha did some blaha with blaha.Blaha and blaha did some blaha with blaha.

Blaha and blaha did some blaha with blaha.

Blaha and blaha did some blaha with blaha.Blaha and blaha did some blaha with blaha.Blaha and blaha did some blaha with blaha.Blaha and blaha did some blaha with blaha.

SIGNATURE = 
Fredrik Fredrikson

} } }

Remove the spaces in { { { and } } }

Result

You will see this

example_pdf.jpg

and clicking the Get Pdf link will open the pdf in a new window.

example_pdf.pdf

Source

PdfLetter.py

Changes

Discussion

This is my first plugin, so be gentle FredrikBjornsson

MoinMoin: FredrikBjornsson/PdfLetter (last edited 2007-10-29 19:10:01 by localhost)