Python and Printing

Mix mix77 at usa.net
Tue Mar 6 06:02:52 EST 2001


I have pictures (JPEG) which I get from a database and dump in an
arbitrary directory.
To print a picture I do the following:

      import os
      os.system("lpr lena.jpg")


My problem is that page orientation is always"landscape" instead
"portatrait".  What
switch is there to specify orientation for "lpr" if any?

P.S. I'm working under linux (redhat 7.0 distribution ).





More information about the Python-list mailing list