Placing graphics & text on printed page - jan06call.jpg (0/1)
Kevin
other at cazabon.com
Sun Jan 15 09:32:37 EST 2006
One option is to create your page as an image file using PIL (which can
handle your text and drawing requirements, as well as any
pictures/graphics), then print it to a windows printer using my
ImagePrintWin module.
ImagePrintWin can print to any normal windows printer, and includes an
optional GUI for doing a "Printer Setup" type dialog (including preview).
It can even handle ICC profiles for your printer if you want color accuracy.
You can download ImagePrintWin (GPL'd) from my site at:
http://www.cazabon.com/python/downloads/ImagePrintWin.py
The pyCMS module for doing ICC is available also on my site at:
http://www.cazabon.com/pyCMS/
Kevin Cazabon.
"Michael Galvin" <michaelgalvin at verizon.net> wrote in message
news:qj1ds1d5msb9l6di4oobqsc458kcl31fv2 at 4ax.com...
> I am trying to use Python to send to the printer a calender filled
> with a mix of text and simple graphics. I want to draw on the printed
> page something like a table with 6 rows and 7 columns to represent a
> calendar. I want to place text precisely within those boxes on the
> printed page. I am using Python 2.4 on Windows XP
>
> I was in the past able to do this within Visual Basic using its
> printer object. Visual Basic's printer object uses a coordinate
> system to allow you to draw lines and to place text on the printed
> page precisely. I have attached a file "jan06call.jpg" to this message
> to illustrate what I am trying to do.
>
> Does Python have a module which would help me do this?
>
> To put it another way, can Python control the placement of text and
> graphics precisely on the printed page?
>
> I have scoured my Python programming texts, python.org, and this
> usenet group without success. Mark Lutz's wonderful book "Programming
> Python" has not one reference to the word "printer" in its index.
> Surely, I must be overlooking something or thinking about this wrong.
>
> Michael Galvin
> Muskegon, MI
>
More information about the Python-list
mailing list