Posts Tagged ‘ bounding box ’

latex error: .xbb (no BoundingBox) for pdf files

So I have been encountering this error a lot for the pdf files which were working fine on one machine but after being shifted to other, could not compile me tex file. After spending quite a bit of time in fixing from with in latex, a friend recommended should just fix the pdfs themselves

so do following

%first convert pdf to eps

pdftops -eps yourPDFName.pdf yourPDFName.eps

%convert to eps with bounding box 

epstool –copy –bbox yourPDFName.eps –output yourPDFNameNew.eps

%convert back to pdf

epstopdf yourPDFNameNew.eps