I am working on a Node/JS tool to create ASCIIDoctor formatted documentation from the embedded documentation in a Vamunda BPMN file.

The project is out on GitHub at https://github.com/GeekMustHave/Camunda-ASCIIDoc-Generator

My GiTHub library needs to be cleaned up from the development but, everything is out there.

The part I’m missing is the ability read a BPMN file and generate a PNG and SVG version of the diagram.

I found a GitHuB BPMN-Ti-Image project https://github.com/bpmn-io/bpmn-to-image which mentions PDF and PNG but no SVG. It uses puppeteer as a headless browser to do the HTML page to host the diagram.

Does anyone know if this library can do SVG export?

hi @GeekMustHave
you can download a SVN by using BPMN-js directly.
Maybe check out this example: https://github.com/bpmn-io/bpmn-js-examples/blob/master/modeler/app/index.js#L44


1 Like

One line of code? Excellent!

Thanks for pointing direct to line in the example code.