Bug 688943 - Improve handling of media size changes from gv
Improve handling of media size changes from gv
Product: Ghostscript
Classification: Unclassified
Component: X Display Driver
All Linux
: P4 normal
Assigned To: Ralph Giles
Bug traffic
Depends on:
  Show dependency treegraph
Reported: 2006-10-13 04:19 PDT by William Bader
Modified: 2009-01-22 19:14 PST (History)
1 user (show)

See Also:
Word Size: ---

patches to gdevxini.c (890 bytes, patch)
2006-10-13 04:19 PDT, William Bader
Details | Diff
sample file to show problem (783 bytes, application/postscript)
2006-10-13 04:31 PDT, William Bader

Note You need to log in before you can comment on or make changes to this bug.
Description William Bader 2006-10-13 04:19:11 PDT
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 PDT
Created attachment 2536 [details]
patches to gdevxini.c
Comment 2 William Bader 2006-10-13 04:31:47 PDT
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 PDT
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.


Markus Steinborn
Comment 4 Ralph Giles 2009-01-22 19:10:52 PST
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 PST
Note the associated Debian bug #142228 for further history on this patch.