Archive

Posts Tagged ‘boundingbox problem eps’

Converting a Visio Image to EPS

I fought for two days to understand the way of embedding eps image in latex. You cannot convert an image directly to eps from VISIO. At first, you need to convert it to PS (Post Script format). To do that you need to add a printer which can print a visio document to ps. To do it in windows 7, go to devices and printer and select add printer.

After that, Open Microsoft Visio and click print and the following window will pop up and select the printer and don’t forget to print on file and save the file as  your_file_name.ps

After that you need a software that will convert the ps file to eps and you can do it with GSview. I faced the bounding box problem while converting the file to eps. To do that when you convert to eps, follow don’t forget to check it automatic bounding box calculation.

So, now you have your eps file ready to be embedded. If you still face problem with the bounding box, then you can manually edit the bounding box by opening the file using textpad or winedit. You need to change the bounding box parameter (To do that take the mouse cursor to the top left most corner of the image to see the co-ordination (normally in pt (i.e 200,300 pt) and bottom right most corner of your image and change it accordingly).

If you want to use pdflatex then you will encounter an error saying that “EPS file not supported”. To do so, you need to add epstopdf package which will convert the eps to pdf on the fly.

\usepackage{epstopdf}

But, using this package might not solve your problem. You can convert according to the following sequence to avoid the bounding box problem:

Tex>Dvi, and then Dvi>pdf