Bug 640255 - gv displays some landscape PDFs incorrectly
Summary: gv displays some landscape PDFs incorrectly
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: gv
Version: 15
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-05 11:06 UTC by Ian Collier
Modified: 2012-08-07 20:15 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-07 20:15:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
A sample landscape PDF which gv displays incorrectly (8.50 KB, application/pdf)
2010-10-05 11:06 UTC, Ian Collier
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Ghostscript 692010 0 None None None Never

Description Ian Collier 2010-10-05 11:06:15 UTC
Created attachment 451641 [details]
A sample landscape PDF which gv displays incorrectly

Description of problem:
gv is unable to properly display some landscape-format PDFs which both xpdf and "gs -sDEVICE=x11" display correctly.

Version-Release number of selected component (if applicable):
gv-3.7.1-1.fc13.x86_64 (also the same version on F12)

How reproducible:
100%

Steps to Reproduce:

Run gv with the attached document as parameter.  At the top it says Landscape and y842x595 and the gv window is in landscape format, but the document is displayed sideways.

Switch the orientation to Portrait and the document is displayed the right way up but in a portrait-shaped window, and the right-hand edge of the document is cut off.

But I have a cunning plan: in my .gv I have defined the media "A4landscape" (with size 842x595).  Select that, and now the window is the right shape.  Unfortunately... the right-hand side of the document is still clipped off and the area where it should be is blank.

Comment 1 Orion Poplawski 2010-10-06 16:42:59 UTC
I've passed this on to bug-gv (upstream bug list) and Markus said he will look at it.  He also notes that:

"gs -sDEVICE=x11 -dFIXEDMDIA ls.pdf" displays the file incorrectly - just like
gv does.

So this probably is a ghostscript issue.  You might try bug-gv for filing bugs in the future as I just package it up.

Comment 2 Bug Zapper 2011-05-31 11:57:07 UTC
This message is a reminder that Fedora 13 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 13.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '13'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 13's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 13 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Ian Collier 2011-06-13 12:30:15 UTC
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.

Comment 4 Fedora End Of Life 2012-08-07 20:15:44 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


Note You need to log in before you can comment on or make changes to this bug.