Bug 58840 - ghostview crops pages the wrong way
Summary: ghostview crops pages the wrong way
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gv
Version: 7.2
Hardware: i686
OS: Linux
low
medium
Target Milestone: ---
Assignee: Dan Williams
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-01-25 17:54 UTC by Rene Uittenbogaard
Modified: 2007-03-27 03:51 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2005-04-22 15:16:23 UTC
Embargoed:


Attachments (Terms of Use)
simplified test postscript document which is rendered wrongly by gv (1.54 KB, application/postscript)
2002-01-25 17:56 UTC, Rene Uittenbogaard
no flags Details
patch to fix landscape cropping problem with gv (with both ps and pdf files) (507 bytes, patch)
2003-06-24 01:42 UTC, John Bowman
no flags Details | Diff

Description Rene Uittenbogaard 2002-01-25 17:54:46 UTC
Description of Problem:
ghostview crops pages the wrong way

Version-Release number of selected component (if applicable):
gv-3.5.8-13

How Reproducible:
always

Steps to Reproduce:
gv fstab.ps

Actual Results:
text lines are cropped

Expected Results:
text ought not to be cropped - the text is entirely within the clipping path

Additional information:
changing the %%BoundingBox line at the top of the document (by swapping the 
length and width) or removing this line does not change the way the document is 
rendered. 'gs' displays the document correctly.

Comment 1 Rene Uittenbogaard 2002-01-25 17:56:42 UTC
Created attachment 43497 [details]
simplified test postscript document which is rendered wrongly by gv

Comment 2 Bill Nottingham 2002-01-26 00:07:31 UTC
It looks like it's getting the orientation wrong for some reason.

Comment 3 Craig Lawson 2002-03-16 04:07:12 UTC
I think the problem is that fstab.ps was created with the page orientation as
"portrait", but with dimensions 11" wide x 8.5" high (landscape dimensions). Not
to suggest that gv shouldn't handle this case.

I have a similar but slightly different problem. I have a PDF file that looks
perfectly fine in the default display orientation, but is cropped badly when I
change the orientation. gv initially displays the document as 11" wide x 8.5"
high (landscape orientation), but tells me that the orientation is "Portrait".
If I use the menu to change the orientation to "Landscape", it rotates the image
90 degrees CW, but crops it badly. I want the image rotated so that I can print
it on my regular letter sized, portrait orientation paper, but gv crops away the
lower 2.5", which is not what I want.

So to summarize, the default orientation is shown as "portrait", the display
dimensions are 11w x 8.5h, and the crop is the same, which is good. When I
change the orientation to "landscape", the display dimensions are 8.5w x 11h,
and the crop is 8.5 x 8.5, which is bad.
I hesitate to attach my PDF to this bug because it is large (1.1 Mb). The PDF
was create on Win32 I'm not sure with what software, but I don't have it. I
tried to create a similar test case using StarOffice, but wasn't able to.

Comment 4 John Bowman 2003-06-24 01:42:41 UTC
Created attachment 92574 [details]
patch to fix landscape cropping problem with gv (with both ps and pdf files)

Another workaround is to simply add the option -g2x2 to the Device and/or
Antialias Device. The geometry 2x2 is arbitrary, but is sufficient to reset the
cropping region.

Comment 5 Rene Uittenbogaard 2003-11-26 10:06:56 UTC
This workaround does not work for me (using version gv-3.5.8-18).
Pages are still cropped the wrong way.

Comment 6 Dan Williams 2005-04-22 15:16:23 UTC
RHL 7.2 is no longer supported, and due to inactivity this bug is being closed.


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