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 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.


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


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

    Thank you for sharing the method.

  2. andy
    October 14, 2012 at 8:27 pm

    Thanks for posting this. I also fought for days with this issue. Unfortunately part of this solution did not work for me – the EPS produced in this manner still would not display correctly when compiled into Latex, I think because of some error in the PS file printed from Visio. Here is what finally worked to insert Visio images into my Latex document while keeping them scalable (vector) – hopefully it will help some people:

    My setup: Visio 2010 (process works for Excel files too); Windows 7; TecnixCenter 1.0; MiKTeX 2.9; GSView 5.0

    1. Open file containing image in Visio/Excel
    2. Delete any vertical text (will cause problems in next steps)
    3. Select image to be inserted and copy
    4. Open blank OpenOffice Draw file (OpenOffice is freeware, I have v3.4.1)
    5. Paste image as Metafile (the default paste option).
    6. Re-type vertical text. (May also need to fix other components of image, e.g. hatched Excel columns)
    7. Select all
    8. File – Export… Select EPS in “Save as type” and check the “Selection” box, then click Save.

    EPS image is now ready to be embedded in Latex. If you like you can use GSView’s “PS to EPS” function to remove small amounts of extra white space as described by safiqul. This worked well for the nine images I’ve tried it on so far.

    You can also try saving the Visio image as WMF and then opening that in OpenOffice Draw.

  3. aef
    November 12, 2014 at 1:05 pm

    Reblogged this on aef.

  4. Hossein
    March 4, 2016 at 4:16 pm

    I think I did all the steps right. However I couldn’t get the eps file to show up in my latex. Since I had worked with another latex file, employing the same method, before and it was working in that time, I decided to copy and paste all the packages from there to this file and it worked….! the packages are:


    Hope this helps some.

  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 )

Google+ photo

You are commenting using your Google+ 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

%d bloggers like this: