Hello Frank, On Wed, Aug 15, 2007 at 10:55:24PM +0200, Frank Küster wrote:
> I hope you can help me with the following problem with epstopdf. The > file at http://people.debian.org/~frank/depgraph.eps, when converted to > PDF with epstopdf, is displayed badly (see > http://people.debian.org/~frank/depgraph.pdf): In the original file, > the graphics fills the bounding box quite well, but in the PDF file, > parts at the upper and right edge are missing. I think it comes from > the CorrectBoundingBox function. With --debug, I get > > * Ghostscript pipe: gs -q -sDEVICE=pdfwrite -dAutoRotatePages=/None > -sOutputFile='depgraph.pdf' - -c quit > * Scanning header for BoundingBox > * Old BoundingBox: 36 36 476 233 > * New BoundingBox: 0 0 440 197 > * Offset: -36 -36 > * Ready. > > There is one line in the eps file which I found has an influence on > this: > > 36 36 440 197 boxprim clip newpath > > If I remove this line, things get a bit better, but there is still > something missing. > > Do you have an idea what is going on here, and whether it is a problem > with gs, epstopdf, or the original PDF file? Your ".eps" file isn't EPS at all (many violations: "setpagedevice", ...) Thus you are out of luck with "gs -dEPSCrop" or even "epstopdf". Example procedure in this case for converting to PDF: 1. Edit the file and increase PageSize: /PageSize [476 233] 2. Convert to PDF: ps2pdf depgraph.ps 3. Fix MediaBox, e.g. by pdfcrop Yours sincerely Heiko <[EMAIL PROTECTED]> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]