visio转图片
使用的破解版20.4版本,转换出现丢数据情况(不推荐!!!)
@Test
public void visioToPng() throws Exception {
// 引入破解代码
InputStream is = new FileInputStream(new File(this.getClass().getClassLoader().getResource("license.xml").getPath()));
License license= new License();
license.setLicense(is);
is.close();
// Initialize a Diagram class
Diagram diagram = new Diagram("D:\\dbbg\\visio\\xxx.vsdx");
// Save diagram in the png format
diagram.save("D:\\dbbg\\visio\\xxx.png", SaveFileFormat.PNG);
}