Add the ability to save as an image
I know XMind itself allows you to save/ export a mindmap as an image file (e.g. BMP or JPEG).
I would be great if the SDK also supported this
Hi
The SDK allows only to create or modify XMind documents, not to develop "XMind extensions" for adding new features like export to image. Anyway it would be possible to export to another graph or mindmap format like GraphViz which generates it own visualization in PDF, PNG etc... Let me know if such a feature may be useful in this API.
It would be useful to my company. We are looking at storing our XMind files under source control (along with our system documentation) and running a CI job to generate rich HTML documentation (hence the interest in using the API to generate an image of the mindmap).
I've started a prototype on a fork (Almerxsese/xmind-sdk-python). It generates a pdf image of a xmind file. Give it a try, Look the code of main() in GraphvizExportFilter, it converts an xmind file into xmind/data then generates a .dot file (text description forr Graphviz) then runs a Graphviz utility (twopi.exe) to generate the pdf.
Updates published in https://github.com/Almerxsese/xmind-sdk-python (export to Graphviz .dot format then generation of a pdf)
Hello Richard
NB: Sorry for the very delayed answer, I have received (or noticed) your email only this evening...
Thanks for your answer. In fact I'm rather fluent with GUI tools for mindmapping / semantic networks. I've coded some prototypes for exporting /XMind/ maps and /TheBrain /networks to other formats (eg: /XMind to GraphViz/, /TheBrain to Neo4J/ and /TheBrain to GraphViz/).
I tried to reach both /XMind /and /TheBrain /R&D to consider partnership potential but they are clearly not interested. I even asked the authors of the GitHub /xmindsdk /project to add an extension with /GraphViz /export but they werent' interested either (the guywho answered me is in fact an /XMind /employee). On the other hand my prototypes may have some value for your projects. Concerning the "/XMind to GraphViz/" extension for /xmindsdk /I can send you the code for free (and with a very permissive license like MIT), but the code is a kind of the v0.1 prototype and not "/fully fledged/".
For more ambitious projects, if a partnership is an option, I would be happy to hear more about your company's needs.
Best Regards Michel Kern
Le 23/11/2015 à 13:28, richardwthompson a écrit :
It would be useful to my company. We are looking at storing our XMind files under source control (along with our system documentation) and running a CI job to generate rich HTML documentation (hence the interest in using the API to generate an image of the mindmap).
— Reply to this email directly or view it on GitHub https://github.com/xmindltd/xmind-sdk-python/issues/11#issuecomment-158919559.