drawio导出的png图片是含有原始信息的,本工具用于提取原始的xml信息
- 下载添加依赖
<dependency>
<groupId>me.panxin</groupId>
<artifactId>drawio-data-process</artifactId>
<version>0.0.1</version>
</dependency>- 调用
ExtractDiagramFromPNG.extractData(FileInputStream fis)https://github.com/jgraph/drawio/tree/dev https://juejin.cn/post/7077729413919408136 https://github.com/pzl/drawio-read/tree/master https://jgraph.github.io/drawio-tools/tools/convert.html https://www.w3.org/TR/png-3/