I wrote the following procedure on 2008.02.08:
To convert a Microsoft Visio document to EPS without losing scalable vector format (and without installing 3rd-party software…):
- Install Microsoft Save as PDF or XPS Add-in for 2007 Microsoft Office programs (only available for Office 2007?).
- Save Visio document as PDF in Visio 2007.
- Convert PDF to Postscript (.ps) with pdf2ps utility.
- Open .ps file with gsview, and select File -> PS to EPS, be sure to check “Automatically calculate Bounding Box”.
Now you have an EPS file to be embedded into your LaTeX document. Many other converting methods exist, see also Visio and EPS.
Here are some updates (edited on 2009.01.30):
- In theory, you should be able to open that saved PDF directly in gsview and convert to EPS, but gsview either crashes or refuses to accept the PDF.
- In some cases, e.g. when you compile LaTeX directly to PDF using pdflatex, you just need a PDF figure with correct size. In that case, you can set the document size in Visio: File -> Page Setup -> Page Size (tab) -> Size to fit drawing contents, and then save the Visio document to PDF, which will then be in correct size ready to be embedded into LaTeX.
- To create a Postscript file, you don’t necessarily need to save as PDF and convert to .ps using pdf2ps. All you need to do is to use a postscript printer (most modern printers are, including most PDF writers) and print to file. That would create a postscript file which can then be passed to gsview and converted to EPS by adding a bounding box. Note: this is in fact a generic way of converting anything to (vector-format) EPS/PDF with bounding box.