浏览我们的产品

Aspose.Diagram for Java 17.12 发行说明

改进和变化

钥匙概括类别
DIAGRAMJAVA-50290Provide the single API to convert a Visio shape to PDF强化
DIAGRAMJAVA-50291Provide the single API to convert a Visio shape to HTML强化
DIAGRAMJAVA-50572Shape.connectedShapes 方法不检索传出节点强化
DIAGRAMJAVA-50391The flipped images and arrows are generated on converting a VSD to SVG漏洞
DIAGRAMJAVA-50570VSD to PDF - the additional text items are added漏洞
DIAGRAMJAVA-50571导入 VSDX - 形状元素发生错误漏洞
DIAGRAMJAVA-50573VSD to SVG - the lines of a group shape are missing漏洞
DIAGRAMJAVA-50575VSD to SVG - the text items are missing漏洞
DIAGRAMJAVA-50576导入 VDX 过程抛出页面元素错误漏洞

在 Shape 类中添加 Copy 成员

复制成员采用目标形状实例作为参数来克隆此形状。

 // import diagram

Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx");

Shape newShape = new Shape();

// copy diagram

newShape.copy(diagram.getPages().get(0).getShapes().get(0));

newShape.setID(3);

newShape.getXForm().getPinX().setValue(1);

newShape.getXForm().getPinY().setValue(1);

在 Shape 类中添加 toPdf 成员

The toPdf member converts a shape into the PDF format.

 String dataDir = "C:\\temp\\";

// import diagram

Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx");

// save a shape in the PDF format

diagram.getPages().get(0).getShapes().getShape(59).toPdf(dataDir + "out.pdf");

在 Shape 类中添加 toHTML 成员

The toHTML member converts a shape into the PDF format.

 String dataDir = "C:\\temp\\";

// import diagram

Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx");

HTMLSaveOptions hs = new HTMLSaveOptions();

// save a shape in the PDF format

diagram.getPages().get(0).getShapes().getShape(59).toHTML(dataDir + "out.pdf", hs);

使用示例

请查看 Aspose.Diagram Wiki 文档中添加的帮助主题列表:

  1. 将 Visio Shape 复制到另一个 Shape 实例
  2. Convert Visio Shape to PDF
  3. Convert Visio Shape to HTML


 
 简体中文