Bugzilla – Bug 688943
Improve handling of media size changes from gv
Last modified: 2009-01-22 19:14:35 PST
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.
Created attachment 2536 [details]
patches to gdevxini.c
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.
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.
Committed, with a modified comment, in r9389. This will be in the 8.64 release.
Thanks for the patch; sorry for the delay.
Note the associated Debian bug #142228 for further history on this patch.