[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#779178: ghostscript: Landscape document rotate CCW not CW



On Wed 25 Feb 2015 at 21:38:58 +0900, Tomoo Nomura wrote:

> Hello Tomoo. Thank you for your report.
> 
> Attached is a sample Libreoffice writer document.
> Please open it, and print it with setting page size
> com-10(envelop#10) and landscape.
> Wheezy machine and Jessie machine show different result.

They do indeed. On Jessie "NOMURA" is at the upper right-hand corner of
the page; on Wheezy it is at the lower left-hand corner. Correct?

It is possible to export your .odt document to a PDF, sample.pdf. Then

   /usr/sbin/cupsfilter -m application/vnd.cups-pdf -o landscape sample.pdf > out.pdf

will process it through pdftopdf and out.pdf can be viewed. That's on
Jessie, The "Page rot:" line from running pdfinfo on out.pdf has 270.
So it appears there is a 270 degree rotation clockwise, not a 90 degree
anti-clockwise rotation.

Processing sample.pdf as above on Wheezy shows a 90 degree clockwise
rotation.

To complicate matters: there are two options which can give "landscape":

  -o landscape

and

  orientation-required=4

On Jessie they produce the same outcome. On Wheezy there is a 180 degree
difference in the orientations.

Whether the difference between Wheezy and Jessie is a result of changes
in CUPS or cups-filters is unknown (to me) so I have included a CC to
the cups-filters maintainer.

You might be able to overcome your problem with "orientation-required=5"
in an lpoptions file.

Regards,

Brian.


Reply to: