Mario Streiber wrote:
Dierk Fröhling's Message from Wed December 1 2004 16:17:
Mario Streiber wrote:
Dierk Fröhling's Message from Wed December 1 2004 15:30:
Mario Streiber wrote:
Hi all,
I have a document (PS) in landscape orientation and want to print it on my HP LJ6L, but no matter what I do I can't rotate the printout so that it comes out in portrait orientation on the paper.
I use kprinter as print program, but changing the orientation in the properties dialog doesn't change anything.
Just for completeliness:
I print from inkscape, print command line in the program is configured as "| kprinter".
I can print to a file, load it into gv, change the orientation there, but still it is printed in landscape and doesn't fit on the paper.
Is it big? Could you post it here? Or send it as email to me and I will have a look on it.
I just reduced the inkscape drawing to a minimum. This is the resulting .ps file:
[...]
It draws just two big rectangles. I already found this document:
http://portal.suse.de/sdb/de/2002/12/jsmeix_print-cups-landscap e-81.html
but the hints there don't help either, Maybe a cups update will help, I didn't try this.
I have SuSE 8.1 with
$ rpm -qa | grep cups cups-client-1.1.15-132 cups-devel-1.1.15-132 cups-libs-1.1.15-132 cups-drivers-1.1.15-86 cups-drivers-stp-1.1.15-86 cups-1.1.15-132
Regards Mario
Try the following as beginnig of the PS file:
%!PS-Adobe-2.0 %%BoundingBox: 0 0 842 595 %%HiResBoundingBox: 0.0000000 0.0000000 842.00000 595.00000 90 rotate 0.0 -595.00000 translate 0.8 0.8 scale
Yes thanks that worked and is OK for one or two files, but...
I don't want to print every landscape oriented drawing into a file, then manually edit it and send it to the printer.
Maybe everything is mirrored now or top down... Unfortunately the rectangles have no mark where top/bottom and left/right should be.
I added a bit text and this showed it is upside down :-(
I would prefer a printer driver option that just rotates the drawing.
Try instead: %!PS-Adobe-2.0 %%BoundingBox: 0 0 842 595 %%HiResBoundingBox: 0.0000000 0.0000000 842.00000 595.00000 -90 rotate -842.0 0.00000 translate 0.8 0.8 scale . . . Maybe that's better... If it works, you could use sed as in the example at: http://portal.suse.de/sdb/de/2002/12/jsmeix_print-cups-landscape-81.html to modify the PostScript code (add the rotate line, change the translate line and change the scale line). CU Dierk -- Mit freundlichen Grüßen Best regards // Dierk Froehling // aycan Digitalsysteme GmbH // Innere Aumuehlstrasse 5 // 97076 Wuerzburg // Germany // phone: +49.931.270 40 90 // fax: +49.931.270 40 91 // mailto:dfroehling@aycan.de // http://www.aycan.de