تصغير حجم الملف
Contents
[
Hide
]
تصغير حجم الملف
Aspose.Diagram for Java API يسمح للمطورين بإزالة المعلومات المخفية من diagram لتقليل حجم الملف. الصفحة يمثل الكائن مساحة الرسم لصفحة أمامية أو صفحة خلفية. لتقليل حجم الملف ، يمكنك استخدامRemoveHiddenInfoItem خصائص فيRemoveHiddenInformation () طريقةDiagramصف دراسي. يوضح مثال الكود أدناه كيفية إزالة المعلومات المخفية من 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
// 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(ReduceFileSize.class); | |
// Load a Visio diagram | |
Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx"); | |
// Remove hidden information from diagram | |
diagram.removeHiddenInformation((int)(RemoveHiddenInfoItem.SHAPES | RemoveHiddenInfoItem.MASTERS)); |