[Top][All Lists]

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

[bug-gv] Fwd: [Bug 640255] gv displays some landscape PDFs incorrectly

From: Orion Poplawski
Subject: [bug-gv] Fwd: [Bug 640255] gv displays some landscape PDFs incorrectly
Date: Tue, 22 Nov 2011 16:14:02 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111115 Thunderbird/8.0

Processing some old bugs and passing this along. Any thoughts? gs -sDEVICE=x11 -dFIXEDMEDIA ls.pdf still shows it the same way as gv, truncated.

-------- Original Message --------
Subject: [Bug 640255] gv displays some landscape PDFs incorrectly
Date: Mon, 13 Jun 2011 08:30:17 -0400
From: address@hidden
To: address@hidden

Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


Ian Collier <address@hidden> changed:

           What    |Removed                     |Added
            Version|13                          |15
               Flag|needinfo?(address@hidden |
                   |uk)                         |

--- Comment #3 from Ian Collier <address@hidden> 2011-06-13 08:30:15 EDT ---
gv-3.7.2-1.fc15 / ghostscript-9.02-1.fc15 still seem to be affected.  I don't
think the referenced external ghostscript bug is relevant.

As I'm not sure if there is an upstream bug tracker for gv perhaps you could
forward the following to the developer for me?

It's to do with the way pdf2dsc is used to find out the document's properties.
It's not clear though whether the fix best belongs there or in gv.

The document in question typesets the data sideways on a portrait-format canvas
and contains a /Rotate property for the page which says that it should be
rotated before viewing.  Unlike with a PostScript document where
%%PageOrientation is just a comment and not obeyed by gs, gs does actually
rotate this page and shows it the correct way up.

The pdf2dsc program prints out the details as if gs were not going to rotate
the page; it outputs "%%PageOrientation: Landscape" and specifies the media as
595 wide and 842 high.

So gv *thinks* the document will be printed onto a portrait canvas and then gv
rotates it for the display.  But actually, gs is already rotating it, so it
therefore appears sideways with respect to the canvas that gv supplies.

Either: pdf2dsc should never say the document is in Landscape format (because
gs always displays it the correct way up) and instead should swap the height
and width in the media description (tricky because all media is listed by name
at the top of the document);

or: gv should interpret Landscape specially when interpreting a pdf file, by
swapping the height for the width and then not rotating the document after it
is drawn.

Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]