تحويل شكل Visio إلى Html
Contents
[
Hide
]
** تحويل شكل visio إلى html**
طريقة ToHTML التي كشفها ملفشكل يمكن استخدام class للتحويل إلى html.
يوضح الكود أدناه كيفية:
- تحميل عينة diagram.
- الحصول على صفحة معينة.
- الحصول على شكل معين.
- تحويل الشكل إلى html.
شكل إلى Html
استخدم الكود التالي في تطبيق java لتحويل شكل visio إلى html.
// 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(ShapeToHtml.class);
// Call a Diagram class constructor to load the VSDX diagram
Diagram diagram = new Diagram(dataDir + "ShapeToHtml.vsdx");
// Get a particular page
Page page = diagram.getPages().get(0);
// Get a particular shape
Shape shape = page.getShapes().get(0);
// Shape to HTML
HTMLSaveOptions hs = new HTMLSaveOptions();
shape.toHTML("out.htm", hs);