[Build-common-hackers] Bug#397060: epstopdf: figure 1 gets truncated in pdf version of cdbs documentation manual
frank at debian.org
Mon Sep 10 19:29:52 UTC 2007
Dear graphviz maintainers,
/usr/bin/dot from your packages creates buggy "eps" files which cannot
properly processed by gs or frontends. This leads to truncated,
incomplete figures e.g. in the cdbs manual>.
Heiko is the author of epstopdf, and knows very much about (E)PS and PDF.
Heiko Oberdiek <oberdiek at uni-freiburg.de> wrote:
> 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
>> 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
The file in question has the header
%%Creator: dot version 2.8 (Fri Dec 8 11:26:38 UTC 2006)
%%For: (pei) Peter Eisentraut
%%BoundingBox: 36 36 476 233
so I conclude it's dot which is at fault here.
Thanks for you attention,
Debian Developer (teTeX/TeXLive)
More information about the Build-common-hackers