Visio Şeklini Svg'ye Dönüştür
Contents
[
Hide
]
** visio şeklini svg’ye dönüştürme**
Tarafından sunulan ToSvg yöntemiŞekil sınıf, svg’ye dönüştürmek için kullanılabilir.
Aşağıdaki kod nasıl yapılacağını gösterir:
- Bir numune yükleyin diagram.
- belirli bir sayfa alın.
- Belirli bir şekil elde edin.
- şekli svg’ye dönüştür.
Svg’ye Şekil Ver
Bir visio şeklini svg’ye dönüştürmek için java uygulamanızda aşağıdaki kodu kullanın.
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-Java
// The path to the documents directory.
String dataDir = Utils.getDataDir(ShapeToSvg.class);
// Call a Diagram class constructor to load the VSDX diagram
Diagram diagram = new Diagram(dataDir + "ShapeToSvg.vsdx");
// Get a particular page
Page page = diagram.getPages().get(0);
// Get a particular shape
Shape shape = page.getShapes().get(0);
// Shape to Svg
SVGSaveOptions option = new SVGSaveOptions();
shape.toSvg("out.svg",option);