draw.io-export

Convert draw.io xml to pdf/png within command line.

Usage no npm install needed!

<script type="module">
  import drawIoExport from 'https://cdn.skypack.dev/draw.io-export';
</script>

README

draw.io-export

Convert draw.io xml file (usually *.drawio) to pdf/png within command line.

Works nicely with make and/or latexmk. Useful if you are writing a paper or thesis with many figures.

Usage with npm

npm install --global draw.io-export
drawio <source.drawio> -o <dest.pdf>
drawio <source.drawio> -o <dest.png>

Usage with Docker

docker run --rm \
         -v <your folder with .drawio files>:/files \
         b1f6c1c4/draw.io-export