Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45327

RE: PDF generator decision

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <carlosnepomuceno@outlook.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.037
X-Spam-Evidence '*H*': 0.93; '*S*': 0.00; 'args': 0.07; 'suppose': 0.07; 'arguments,': 0.09; 'instances.': 0.09; 'that).': 0.09; 'python': 0.11; 'args,': 0.16; 'subject:generator': 0.16; 'wed,': 0.18; 'passing': 0.19; 'to:name:python-list@python.org': 0.22; 'received:65.55.116': 0.24; 'specify': 0.24; '+0200': 0.26; 'tables': 0.26; 'header:In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'tried': 0.27; 'skip:- 40': 0.29; '[1]': 0.29; 'especially': 0.30; 'url:mailman': 0.30; 'bunch': 0.31; 'quotes': 0.31; 'writes:': 0.31; 'stuff': 0.32; '(including': 0.33; 'url:python': 0.33; 'date:': 0.34; "i'd": 0.34; 'classes': 0.35; 'but': 0.35; 'templates': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'invoice': 0.37; 'email addr:python.org': 0.37; 'christian': 0.38; 'generic': 0.38; 'to:addr:python-list': 0.38; 'subject:': 0.39; 'pdf': 0.39; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 'applicable': 0.60; 'range': 0.61; 'high': 0.63; 're:': 0.63; 'email name:python-list': 0.65; 'containing': 0.69; 'quality': 0.72; 'pdfs': 0.84; '2013': 0.98
X-TMN [vp8bo6OjJbuGbBLAcn3CveW86duMMHjP]
X-Originating-Email [carlosnepomuceno@outlook.com]
From Carlos Nepomuceno <carlosnepomuceno@outlook.com>
To dieter <dieter@handshake.de>, "python-list@python.org" <python-list@python.org>
Subject RE: PDF generator decision
Date Wed, 15 May 2013 09:48:33 +0300
Importance Normal
In-Reply-To <877gj0vk2m.fsf@handshake.de>
References <877gj0vk2m.fsf@handshake.de>
Content-Type text/plain; charset="iso-8859-1"
Content-Transfer-Encoding quoted-printable
MIME-Version 1.0
X-OriginalArrivalTime 15 May 2013 06:48:33.0900 (UTC) FILETIME=[37F2CAC0:01CE5138]
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1690.1368600582.3114.python-list@python.org> (permalink)
Lines 38
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1368600582 news.xs4all.nl 16000 [2001:888:2000:d::a6]:37567
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:45327

Show key headers only | View raw


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 | NextPrevious in thread | Find similar | Unroll thread


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