解决 Warning: BoundingBox not found!
Convert EPS to PDF: problem of bounding box
摘自:http://chi3x10.wordpress.com/2009/06/17/convert-eps-to-pdf-problem-of-bounding-box/
When you save a multiple plots/subfigures figure as an eps file in matlab or latex, the bounding box might not be properly defined. People who use pdflatex need to convert EPS to PDF. The undefined bounding box will cause problems if you use epstopdf to convert EPS to PDF. This problem is shown in the first row in the picture below. The top-left figure is the eps file without properly defined bounding box. Because of this, epstopdf simply printed a letter size pdf file that only contains part of the figure as shown in the top-right figure. You can try to use the option –exact
epstopdf --exact bad.eps
It will probably generate an warning msg like “Warning: BoundingBox not found!” and the resulting pdf is still wrong. One way to fix this problem is to use epstool
epstool --copy --bbox bad.eps --output good.eps
The –bbox option tells epstool to generate a (correct) bounding box for the eps file. With a correctly defined bounding box, you can easily convert an eps file to a pdf file.
epstopdf --exact good.eps
摘自:http://chi3x10.wordpress.com/2009/06/17/convert-eps-to-pdf-problem-of-bounding-box/
When you save a multiple plots/subfigures figure as an eps file in matlab or latex, the bounding box might not be properly defined. People who use pdflatex need to convert EPS to PDF. The undefined bounding box will cause problems if you use epstopdf to convert EPS to PDF. This problem is shown in the first row in the picture below. The top-left figure is the eps file without properly defined bounding box. Because of this, epstopdf simply printed a letter size pdf file that only contains part of the figure as shown in the top-right figure. You can try to use the option –exact
epstopdf --exact bad.eps
It will probably generate an warning msg like “Warning: BoundingBox not found!” and the resulting pdf is still wrong. One way to fix this problem is to use epstool
epstool --copy --bbox bad.eps --output good.eps
The –bbox option tells epstool to generate a (correct) bounding box for the eps file. With a correctly defined bounding box, you can easily convert an eps file to a pdf file.
epstopdf --exact good.eps
浙公网安备 33010602011771号