Christian, have you tried pod[1]? You can use create templates in OpenDocument
format and then create the PDFs just passing the arguments, like:
args = {'name':'John', 'email':'[email protected]'}
renderer = Renderer('template.odt', args, 'result.odt')renderer.run()
[1] http://appyframework.org/pod.html
----------------------------------------
> To: [email protected]
> From: [email protected]
> Subject: Re: PDF generator decision
> Date: Wed, 15 May 2013 08:22:25 +0200
>
> Christian Jurk <[email protected]> writes:
>
>> ...
>> So far I'd like to ask which is the (probably) best way to create PDFs in
>> Python (3)? It is important for me that I am able to specify not only
>> background graphics, paragaphs, tables and so on but also to specify page
>> headers/footers. The reason is that I have a bunch of documents to be
>> generated (including Invoice templates, Quotes - stuff like that).
>
> High quality layouts, especially those containing (potentially complex
> tables), are very difficult to generate automatically.
>
> I do not suppose that you will find a generic solution - one applicable
> to a wide range of document classes and garanteeing high quality
> layout for almost all of its document instances.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
http://mail.python.org/mailman/listinfo/python-list