https://github.com/b1f6c1c4/draw.io-export

Convert draw.io xml to pdf/png within command line. (diagrams.net)

https://github.com/b1f6c1c4/draw.io-export

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (5.2%) to scientific vocabulary

Keywords

automation diagramsnet draw-io drawio mxgraph pdf png
Last synced: 9 months ago · JSON representation

Repository

Convert draw.io xml to pdf/png within command line. (diagrams.net)

Basic Info
  • Host: GitHub
  • Owner: b1f6c1c4
  • License: mit
  • Language: JavaScript
  • Default Branch: master
  • Homepage:
  • Size: 237 KB
Statistics
  • Stars: 64
  • Watchers: 4
  • Forks: 8
  • Open Issues: 1
  • Releases: 5
Topics
automation diagramsnet draw-io drawio mxgraph pdf png
Created almost 8 years ago · Last pushed almost 2 years ago
Metadata Files
Readme License

README.md

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

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

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

bash 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

Owner

  • Login: b1f6c1c4
  • Kind: user
  • Location: NJ, USA
  • Company: Princeton University

52BE D143 A92D BE96 2B83 092B 9BAC 0164 9600 1E70

GitHub Events

Total
  • Watch event: 3
  • Fork event: 1
Last Year
  • Watch event: 3
  • Fork event: 1

Issues and Pull Requests

Last synced: over 1 year ago

All Time
  • Total issues: 9
  • Total pull requests: 17
  • Average time to close issues: 7 months
  • Average time to close pull requests: 6 days
  • Total issue authors: 8
  • Total pull request authors: 2
  • Average comments per issue: 1.67
  • Average comments per pull request: 0.0
  • Merged pull requests: 16
  • Bot issues: 0
  • Bot pull requests: 16
Past Year
  • Issues: 1
  • Pull requests: 4
  • Average time to close issues: about 18 hours
  • Average time to close pull requests: 18 days
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 4.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 4
Top Authors
Issue Authors
  • b1f6c1c4 (2)
  • plusuncold (1)
  • cuietviper (1)
  • oharkins (1)
  • CholoTook (1)
  • bhomass (1)
  • blaggacao (1)
  • fatehks (1)
Pull Request Authors
  • dependabot[bot] (19)
  • davidbonnici1984 (1)
Top Labels
Issue Labels
bug (5) enhancement (3)
Pull Request Labels
dependencies (19) enhancement (1)

Dependencies

package-lock.json npm
  • 103 dependencies
package.json npm
  • axios ^0.27.2
  • lodash ^4.17.21
  • pdf-merger-js ^3.4.0
  • puppeteer ^14.1.2
  • shelljs ^0.8.5
  • yargs ^17.5.1
Dockerfile docker
  • node lts-alpine3.18 build