问题
Is it possible to create Visio drawings from a Linux server ?
That is, without access to the Visio software. Language can be python, php, C ..
回答1:
Short answer: Yes
There are a couple of options available to you:
1 - Generate VDX or VSDX files. These are XML-based formats that Visio can read. (VSDX is new and can only be read by Visio 2013). If you can generate XML files on Linux then you can create these files. I wrote such a library that can help create VDX files - Look for VisioAutomation.VDX here: http://visioautomation.codeplex.com/ also you could look at http://pkgvisio.codeplex.com/.
2 - Generate VSD. This is a binary format and harder to create. LibreOffice has a library to generate this format. Also the "Aspose.Diagram" can do this but as-far-as-I-know does not work on a Linux server.
来源:https://stackoverflow.com/questions/15100664/programatically-create-visio-drawing-on-a-linux-server