Coder Social home page Coder Social logo

pstoeckle / diagrams.net-automation Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 111 KB

Scripts to automatically covert diagrams.net files, e.g., to PDF.

License: Apache License 2.0

Dockerfile 11.05% Python 84.32% Shell 4.63%
diagramsnet drawio python

diagrams.net-automation's Introduction

Diagrams.net Automation

Scripts to automatically covert diagrams.net (former draw.io) files, e.g., to PDF.

Installation

pip install diagrams-net-automation

Usage

$ diagrams-net-automation --help
Usage: diagrams-net-automation [OPTIONS] COMMAND [ARGS]...

  :return:

Options:
  --version                       Version
  --help                          Show this message and exit.

Commands:
  convert-diagrams  Converts Draw.io files to PDF and PNG.

Convert Diagrams

$ diagrams-net-automation convert-diagrams --help
Usage: diagrams-net-automation convert-diagrams [OPTIONS]

  Converts Draw.io files to PDF and PNG.

Options:
  -d, --input-directory DIRECTORY
                                  Input directory with the diagrams.net files.
                                  [default: .]
  -o, --output-directory DIRECTORY
                                  The output directory where the PDF, JPG, or
                                  PNG files should be stored.  [default: dist]
  -D, --draw-io FILE              The diagrams.net executable.  [default: /App
                                  lications/draw.io.app/Contents/MacOS/draw.io
                                  ]
  -w, --width INTEGER             If a width is passed, we will generate a PNG
                                  and/or JPG with this width.
  -X, --include-xml               Convert also .xml files, not only .drawio
                                  files.
  -P, --generate-png              Generate PNG files.
  -J, --generate-jpg              Generate JPG files.
  -S, --skip-pdf-generation       If this flag is set, we will not generate
                                  PDF files.
  -I, --ignore-cache              If this flag is passed, we will ignore
                                  anything in the current cache file. In the
                                  end, we will overwrite the current cache
                                  file.

diagrams.net-automation's People

Contributors

pstoeckle avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

wrenchchatrepo

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.