This version needs gs 3.33. gs 3.33 needs the following patch:
*** gdevxini.c.orig Sun Nov 6 16:46:41 1994
--- combined/gdevxini.c Wed Mar 22 12:55:11 1995
***************
*** 327,332 ****
--- 327,339 ----
m[3] = xdev->height / xdev->y_pixels_per_inch -
(ury + top_margin) / 72.0; /* top */
+ #if 1
+ xdev->ImagingBBox_set = 1;
+ xdev->ImagingBBox[0] = llx;
+ xdev->ImagingBBox[1] = lly;
+ xdev->ImagingBBox[2] = urx;
+ xdev->ImagingBBox[3] = ury;
+ #endif
/******
****** For reasons I don't understand,
****** we have to set the margins to zero here
Must patch and recompile gs for this to work.
The diffs file patches ghostview 1.5 to the current version. They
should apply automatically if you are in the ghostview source
directory and you run `patch -s < diffs'. You have to apply the patches
by hand if you do not have patch: alternatively download
gv1.5gs3.33hack.tar.gz for the entire patched ghostview distribution.
If you have Imake,
1. edit Imakefile (especially careful about GS_DIR)
2. run xmkmf -a
3. run make
Note that make install will overwrite two files in the gs directory
with new versions. You may do a make -n install to see what it is
going to do.
4. make install
Otherwise replace steps 1 and 2 above by the following:
1. edit Makefile (look at GS_DIR in particular)
2. run ad2c Ghostview.ad > app-defaults.h