Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #45327
| From | Carlos Nepomuceno <carlosnepomuceno@outlook.com> |
|---|---|
| Subject | RE: PDF generator decision |
| Date | 2013-05-15 09:48 +0300 |
| References | <877gj0vk2m.fsf@handshake.de> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1690.1368600582.3114.python-list@python.org> (permalink) |
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':'john@example.com'}
renderer = Renderer('template.odt', args, 'result.odt')renderer.run()
[1] http://appyframework.org/pod.html
----------------------------------------
> To: python-list@python.org
> From: dieter@handshake.de
> Subject: Re: PDF generator decision
> Date: Wed, 15 May 2013 08:22:25 +0200
>
> Christian Jurk <commx@commx.ws> 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
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
PDF generator decision Christian Jurk <commx@commx.ws> - 2013-05-14 08:05 -0700 Re: PDF generator decision Frank Miles <fpm@u.washington.edu> - 2013-05-14 15:21 +0000 Re: PDF generator decision jmfauth <wxjmfauth@gmail.com> - 2013-05-14 10:36 -0700 Re: PDF generator decision dieter <dieter@handshake.de> - 2013-05-15 08:22 +0200 RE: PDF generator decision Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-05-15 09:48 +0300
csiph-web