I'm trying to get from a GraphViz graph to a graph in Powerpoint. But, when it's inside of Powerpoint I would like to be able to edit the individual nodes, edges, boundaries. This means exporting the GraphViz as an image file won't work.
Does anyone know any path to get from GraphViz to Powerpoint?
If you know the XML structure of a .PPTX file, you could export your GraphViz graph as an SVG -- which is in reality a text format -- then parse it and emit the XML needed to create the .PPTX file. A difficult method though, I know.
Like all of the Microsoft "open document" formats, the .PPTX is really just a ZIP file that contains many elements, the XML describing the graph being one of them.
You can generate .emf (Enhanced Metafile) images from .dot files using GraphViz on Windows. You can import the .emf file into your PowerPoint presentation and then ungroup it (several times) to break it down into the individual shapes.
This is good, but unfortunately the edges of your graph do not get turned into connectors. Instead, they are pictures of lines, so they don't reroute when you move any of the nodes of your graph around.
You can achieve this by using LibreOffice. I've tested the process with LibreOffice 7.0.4.2.
-Tsvg
).(Of course, you can do 9. and 10. in reverse order.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With