Bug 688943 - Improve handling of media size changes from gv
Summary: Improve handling of media size changes from gv
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: X Display Driver (show other bugs)
Version: 8.54
Hardware: All Linux
: P4 normal
Assignee: Ralph Giles
URL: http://williambader.com/pat/gs8.54.pat
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-13 04:19 UTC by William Bader
Modified: 2009-01-22 19:14 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


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

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 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.