TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wish to include a pdf graphic generated by a third-party scientific code in a LaTeX file. The problem: the pdf graphic has a bounding box issue. When the pdf graphic is opened---along with the resulting LaTeX-generated pdf which includes it---I get the following popup error in Acrobat Reader: "The font XYZ contains a bad /BBox"

I don't control the third-party software that generates this image and thus can't generate a vector graphic from it besides using its built-in capabilities. Yes, I could take a screenshot but this needs to be vector-quality.

Is there a way to sanitize such a pdf graphic to remove the bounding box issue before including in LaTeX?

share|improve this question
You could put it through some PDF tool like Ghostscript or pdftk. The latter claims to be able to fix issues. – Martin Scharrer Apr 19 '12 at 17:36
As it seems you don't need an automatic process, did you try opening the original PDF in inkscape and exporting it again, probably best using PDF version 1.4 instead of 1.5? – Christian Apr 20 '12 at 13:32
@Christian Inkscape performed the job perfectly. Many thanks. – Deaton Apr 20 '12 at 18:32
I'll make it an answer then I guess. – Christian Apr 20 '12 at 22:47
up vote 2 down vote accepted

Open the PDF that is to be embedded in Inkscape and save it again, choosing PDF as the output format. In the dialog window that then pops up, choose PDF version 1.4.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.