Bug 688943

Summary: Improve handling of media size changes from gv
Product: Ghostscript Reporter: William Bader <williambader>
Component: X Display DriverAssignee: Ralph Giles <ralph.giles>
Status: RESOLVED FIXED    
Severity: normal CC: till.kamppeter
Priority: P4    
Version: 8.54   
Hardware: All   
OS: Linux   
URL: http://williambader.com/pat/gs8.54.pat
Customer: Word Size: ---
Attachments: patches to gdevxini.c
sample file to show problem

Description William Bader 2006-10-13 04:19:11 UTC
These patches allow gv to change the image and media size.  Without these
changes, when you change the media size in gv to a value larger than the
bounding box of the file that you are viewing, gs crops the bottom of the image.
Comment 1 William Bader 2006-10-13 04:19:46 UTC
Created attachment 2536 [details]
patches to gdevxini.c
Comment 2 William Bader 2006-10-13 04:31:47 UTC
Created attachment 2537 [details]
sample file to show problem

Open this file with gv.  I have gv-3.5.8 with patches from
http://williambader.com/pat/pat.html , but the version shouldn't matter.  The
image has text with a letter-sized border.  If you click on the button to
change the media size to something larger than letter, A4 for example, gs will
clip the bottom of the image an amount equal to the difference between the new
size and letter size.  ggv-2.8.0 (distributed with RedHat FC3) shows a similar
problem if you change the media with View -> Size.
Comment 3 msteinbo 2008-06-16 05:45:14 UTC
I am the GNU gv maintainer.

Could you please apply this patch? It would help gv a lot. This patch have been
tested with GNU ghostscript 8.62 sucessfully.


Greetings

Markus Steinborn
Comment 4 Ralph Giles 2009-01-22 19:10:52 UTC
Committed, with a modified comment, in r9389. This will be in the 8.64 release.

Thanks for the patch; sorry for the delay.
Comment 5 Ralph Giles 2009-01-22 19:14:35 UTC
Note the associated Debian bug #142228 for further history on this patch.