Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'cip': 0.09; 'hallo,': 0.09; 'idea?': 0.09; 'pdf?': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'jan': 0.12; 'goebel': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'url:submit': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'python?': 0.22; 'print': 0.22; 'header:User-Agent:1': 0.23; 'header:X-Complaints- To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'besides': 0.30; 'label': 0.30; 'url:%3a': 0.30; 'another': 0.32; 'url:python': 0.33; 'subject:from': 0.34; 'could': 0.34; 'anybody': 0.35; 'but': 0.35; 'there': 0.35; 'url:org': 0.36; 'should': 0.36; 'minimum': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'pdf': 0.39; 'url:action': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'received:173': 0.61; 'address': 0.63; 'city': 0.66; 'url:search': 0.81; 'received:fios.verizon.net': 0.84; 'subject:Making': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Making Labels from python Date: Sun, 09 Mar 2014 18:53:41 -0400 References: <531CDD47.8020304@fam-goebel.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-254-207.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: <531CDD47.8020304@fam-goebel.de> 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: 1394405654 news.xs4all.nl 2865 [2001:888:2000:d::a6]:37264 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:68103 On 3/9/2014 5: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? Get a label printing program that you can call from python with subprocess. Or look at the following https://pypi.python.org/pypi?%3Aaction=search&term=label+printing&submit=search The top hit is pylabels, which uses ReportLab. -- Terry Jan Reedy