[Chicago] writing pdf files from python

Carl Karsten carl at personnelware.com
Wed Aug 20 15:51:38 CEST 2008

Lukasz Szybalski wrote:
> On Tue, Aug 19, 2008 at 11:00 PM, Steven Githens
> <sgithens at caret.cam.ac.uk> wrote:
>> Another option (although a bit more obtuse) that I used to make all the
>> preprinted badges for this last PyCon was Jython + iText. I needed to open
>> and modify existing PDF's (something the free version of ReportLab didn't
>> support then, it might now).  It worked pretty well and pretty concise code
>> using the Java library from Jython.
> Thant's nice. I have to check, but I think openOffice can read from
> pdf then output what ever it gets, but not sure how it would look.
> As far as reportalb, I find it hard to use since you actually need to
> create the pdf, layers, etc, vs in openoffice you design the letter in
> openoffice and then you use python to fill in the blanks. At least
> that is what I do.
> What are you guys using pdf functionality for? What type of document?
> Lucas

If you look at your PyCon reg (you did go, right?) 
you will see a png of your badge.  click on it and you get a pdf for printing on 
pre-printed stock.  That was done with reportlab - the png is made on the fly by 
making a pdf and converting to png.

Carl K

More information about the Chicago mailing list