合并组合 Diagram
Contents
[
Hide
]
可能的使用场景
Aspose.Diagram for Python via Java allows you to combine two visio files to one. Aspose.Diagram for Python via Java API has the Diagram class that represents a Visio drawing. 使用方法结合在 Diagram 类中组合图表。
示例代码
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import jpype | |
import asposediagram | |
jpype.startJVM() | |
from asposediagram.api import * | |
lic = License() | |
lic.setLicense("Aspose.Total.Product.Family.lic") | |
# Load a Visio diagram | |
diagram = Diagram("Drawing1.vsdx") | |
# Load another Visio diagram | |
diagram2 = Diagram("DrawingFlowChart.vsdx") | |
diagram2.combine(diagram) | |
# save in the VSDX format | |
diagram2.save("CombineDiagram_Out.vsdx", SaveFileFormat.VSDX) | |
jpype.shutdownJVM() |