Home > Latex > Converting a Visio Image to 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 a 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

 

Advertisement
  1. hugh
    September 26, 2011 at 11:08 am | #1

    Thank you for sharing the method.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.