[Chicago] writing pdf files from python

Steven Githens sgithens at caret.cam.ac.uk
Wed Aug 20 15:43:09 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.
>
>   
iText is definately like ReportLab in that it's a lot of lower level PDF 
operations with a few convenience wrappers around some of them.  If 
that's what you need it's pretty robust.  For more larger real 
documents, scripting OOo would probably have a lot more value.

-s
> What are you guys using pdf functionality for? What type of document?
>
> Lucas
>
>
>   
>> -steve
>>
>>
>> Lukasz Szybalski wrote:
>>     
>>> Hello,
>>> On the last meeting one of you mentioned that you wanted to write pdf
>>> from python.
>>>
>>> I just did something similar with openoffice. You read openoffice
>>> file, do some stuff and save it as pdf.
>>>
>>> It works pretty nice..
>>>
>>>
>>> Here is a manual.
>>> http://lucasmanual.com/mywiki/OpenOffice
>>>
>>>
>>> Lucas
>>>
>>>
>>>       
>> _______________________________________________
>> Chicago mailing list
>> Chicago at python.org
>> http://mail.python.org/mailman/listinfo/chicago
>>
>>     
>
>
>
>   



More information about the Chicago mailing list