0.3.0 • Published 10 months ago

draw.io-export v0.3.0

Weekly downloads
240
License
MIT
Repository
github
Last release
10 months ago

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>

Supported formats -F|--fmt

  • If not specified, automatically detect png or pdf
  • png Only the first page is used
  • pdf Only the first page is used
  • cat-pdf All pages used, concatenated
  • split-png All pages used, separate files with name <dest><#>.png
  • split-pdf All pages used, separate files with name <dest><#>.pdf
  • split-index-png Alias for split-png
  • split-index-pdf Alias for split-pdf
  • split-id-png All pages used, separate files with name <dest><diagram-id>.png
  • split-id-pdf All pages used, separate files with name <dest><diagram-id>.pdf
  • split-name-png All pages used, separate files with name <dest><page-name>.png
  • split-name-pdf All pages used, separate files with name <dest><page-name>.pdf

Usage with Docker

docker run --rm \
         -v <your folder with .drawio files>:/files \
         b1f6c1c4/draw.io-export [<fmt>]
  • All above formats are supported
  • If not specified, generate both png and cat-pdf
0.3.0

10 months ago

0.2.1

1 year ago

0.2.0

2 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.2

4 years ago

0.0.1

6 years ago