Dear Werner, Tadziu Hoffmann wrote:
Another thing to note is that setting the MediaBox in the PDF-file from the BoundingBox in the PS-file using -dEPSCrop appears to work only when the "EPSF"-signature is present in the first line of the PS-file.
And gs is correct doing so, sinceEncapsulated PostScript File Format Specification Version 3.0
says, in the section "Guidelines for Creating EPS Files": The two required DSC Header comments are%!PS-Adobe-3.0 EPSF-3.0 %%BoundingBox: llx lly urx ury
Thus, we have to add the following to the sed command line -e '/^%!PS-Adobe-3.0/s/$/ EPSF-3.0/' You may check the results in attached file epstest2.tgzOf the result files in that archive foo.png looks OK (no parts cut off from the letters).
(foo.eps shows OK too in Mac OS X Preview, but I am not sure how that application works). Please, compare the results with what is generated/shown in your environment. On Wed, 18 Jan 2006, Werner LEMBERG wrote:
2) If ps2epsi is used, bounding box seems to be too small. See foo.epsi, foo_i.pdf, foo_i.png in the attached archive - something is cut off the bottom of the glyphs.This looks like a bug in the ps2epsi script -- it seems as if the bbox of the preview image is used (which is 1 pixel smaller vertically) instead of the original one. Please submit a bug report at bugs.ghostscript.com (or check the bug database) and CC me. BTW, it fails with both gs 8.53 and 7.07.1.
Let us first see whet happens to an extremely simple ps file in different environments (see attached file croptest.tgz). Sincerely, Michail
croptest.tgz
Description: Binary data
epstest2.tgz
Description: Binary data
_______________________________________________ Groff mailing list Groff@gnu.org http://lists.gnu.org/mailman/listinfo/groff