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


Groups > comp.lang.python > #68093 > unrolled thread

Making Labels from python

Started byUlrich Goebel <ml@fam-goebel.de>
First post2014-03-09 22:29 +0100
Last post2014-03-09 23:27 +0100
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  Making Labels from python Ulrich Goebel <ml@fam-goebel.de> - 2014-03-09 22:29 +0100
    Re: Making Labels from python Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2014-03-09 23:27 +0100

#68093 — Making Labels from python

FromUlrich Goebel <ml@fam-goebel.de>
Date2014-03-09 22:29 +0100
SubjectMaking Labels from python
Message-ID<mailman.7964.1394400959.18130.python-list@python.org>
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


-- 
Ulrich Goebel
Paracelsusstr. 120, 53177 Bonn

[toc] | [next] | [standalone]


#68101

FromIrmen de Jong <irmen.NOSPAM@xs4all.nl>
Date2014-03-09 23:27 +0100
Message-ID<531ceac3$0$2867$e4fe514c@news.xs4all.nl>
In reply to#68093
On 9-3-2014 22:29, 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
> 
> 


If generating PDF is too heavy for your liking, you could generate some simple HTML
instead and use appropriate CSS (page-break etc) to make it suitable for correct
printing (which you can do from your web browser). I've used this technique rather
successfully myself and generating the HTML for address labels should be fairly trivial.
Getting the css right can be a bit of trial and error depending on the browser you're using.


Irmen

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web