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.
Created attachment 43497 [details] simplified test postscript document which is rendered wrongly by gv
It looks like it's getting the orientation wrong for some reason.
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.
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.
This workaround does not work for me (using version gv-3.5.8-18). Pages are still cropped the wrong way.
RHL 7.2 is no longer supported, and due to inactivity this bug is being closed.