Giter Club home page Giter Club logo

draw.io-export's Introduction

draw.io-export

This repository is a fork of draw.io-export maintained by b1f6c1c4, with additional features such as batch conversion with glob pattern matching and the ability for supplying multiple .drawio files.


Convert draw.io XML files (usually *.drawio) to PDF/PNG within the command line.

Installing Locally

git clone --depth=1 https://github.com/michaelgrigoryan25/draw.io-export
npm install --global ./draw.io-export
drawio --help

Example Usage

Default behavior

When glob pattern matching is disabled, you can directly supply the paths of the files, and they will be exported accordingly:

drawio file1.drawio file2.drawio

With glob pattern matching

When glob pattern matching is enabled the outputs of the files will have the same name as the original files and will be postfixed with .exported.{format}. The files will be exported in the same directory that the drawio files were found from:

drawio -G "./*.drawio" "../*.drawio"

Flags

Glob conversion -G|--glob

This flag enables specifying glob patterns for matching drawio files. By default, this flag is set to false. You have to explicitly specify it to use glob patterns.

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

draw.io-export's People

Contributors

b1f6c1c4 avatar dependabot[bot] avatar michaelgrigoryan25 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.