![]() |
HylaFAX v4.1beta2 under RedHat Linux 6.0 with egcs 2.91.66 US-American locale (Letter page) Bug: The TextFMT class outputs an incorrect %%BoundingBox. Reproduce by: Compile and install hylafax-4.1beta2.tar.gz normally. Cd into the hylafax-4.1beta2 directory and type % /usr/local/sbin/textfmt README > t.ps % gv t.ps You will see the bug immediately - gv's window will be too wide horizontally and not long enough vertically. My copy of the _PostScript Language Reference Manual_, Addison-Wesley, sixth printing, April 1987, Appendix C - Structuring Conventions, p. 268, says that the four values in the %%BoundingBox comment are supposed to be the coordinates of the lower left corner and upper right corners of the bounding box. For a bounding box that encloses the whole page, the lower left corner is 0, 0 and the upper right corner is X, Y = page width, page height (NOT height, width). Patch: --- util/TextFmt.c++.save Sun Jun 13 03:41:25 1999 +++ util/TextFmt.c++ Wed Sep 8 10:47:44 1999 @@ -515,5 +515,5 @@ fputs("%%Origin: 0 0\n", output); fprintf(output, "%%%%BoundingBox: 0 0 %.0f %.0f\n", - physPageHeight*72, physPageWidth*72); + physPageWidth*72, physPageHeight*72); fputs("%%Pages: (atend)\n", output); fprintf(output, "%%%%PageOrder: %s\n",