Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.051 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'cip': 0.09; 'hallo,': 0.09; 'idea?': 0.09; 'pdf?': 0.09; 'python': 0.11; 'goebel': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'library': 0.18; 'python?': 0.22; 'print': 0.22; 'header:User-Agent:1': 0.23; 'received:emailsrvr.com': 0.24; 'received:(smtp server)': 0.26; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'besides': 0.30; 'label': 0.30; 'gary': 0.31; 'another': 0.32; 'subject:from': 0.34; 'could': 0.34; 'anybody': 0.35; 'usual': 0.35; 'but': 0.35; 'there': 0.35; 'useful': 0.36; 'should': 0.36; 'minimum': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'generating': 0.39; 'pdf': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'you.': 0.62; 'address': 0.63; 'city': 0.66; 'pdfs': 0.84; 'received:108.166': 0.84; 'subject:Making': 0.84; 'received:108': 0.93 X-Virus-Scanned: OK Date: Sun, 09 Mar 2014 15:01:11 -0700 From: Gary Herron User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Making Labels from python References: <531CDD47.8020304@fam-goebel.de> In-Reply-To: <531CDD47.8020304@fam-goebel.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1394402799 news.xs4all.nl 2898 [2001:888:2000:d::a6]:38767 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:68097 On 03/09/2014 02:29 PM, Ulrich Goebel wrote: > Hallo, > > has anybody an idea how to make small formated documents redy to print > with python? > > I would like to print address labels as > > firstname lastname > street and number > cip and city > > The best should be to form a PDF and send it to the label printer. So > the PDF could be given the pagesize (labelsize) and a minimum format > (boldface). But may be there is another light-weight-format besides PDF? > > Any idea? > > Ulrich > > The usual python library for generating PDFs is reportlab. It has some formating capabilities that my be useful for you. Gary Herron