How to remove private information, unused shapes, data graphics and styles using Aspose Diagram?

@msindia

You may please download Aspose.Diagram for .NET 20.1 from the given link.

@asad.ali,

Thanks for the New version Aspose.Diagram for .NET 20.1.

We tested with Aspose.Diagram for .NET 20.1 dll, the issue is resolved. But the bytes value still randomly changing ‘1 Byte’.
Step 1 :
Remove the Hidden Info Item for the diagram on first time, the diagram size reduced to 50% (Ex. 42667 to 28928 bytes).
Step 2:
Remove the Hidden Info Item for the diagram (Size : 28928 bytes) on second time, the diagram size reduced from 28928 to 28879 bytes.
Step 3:
Remove the Hidden Info Item for the diagram (Size : 28879 bytes) on third time, the diagram size reduced from 28879 to 28880 bytes.

We have tried as like the above process more than 6 times.
Please have a look the below image.

Annotation 2020-01-11 125239.png (4.6 KB)

We would feel great, if the size of the image does not change even after removing the hidden info on multiple times.

Also I would like to ask you, if you could provide a property like “DiagramHasHiddenInfo” in Aspose diagram for getting hidden info in the diagram. So with this, we will skip the removing part in the diagram if the property (No hidden info) is true.

In case of any questions, please let me know.

Thanks.

@msindia

We are looking into this and will get back to you soon.

@msindia

We have re-opened the ticket DIAGRAMNET-51743 and will again investigate it. We will let you know as soon as we have some updates. Please spare us little time.

@msindia

There is creating time and saving time and other time differences, that is why the file size is changing a little. Also, when you create an empty visio file using Microsoft Visio to save it several time but not use Aspose.Diagram, you will find this issue too.
Please see the picture in the appendix. visioemptyfilesize.PNG (247 Bytes)

Furthermore, a feature request with an ID DIAGRAMNET-51750 has been logged to add " HasHiddenInfo" flag and we will let you know as soon as it is available. Please spare us little time.

@asad.ali,

Thanks for the information.
When I create an empty visio file using Microsoft Visio to save it several time the file size is increasing. So, please leave it the byte increasing problem.

We are waiting for a feature request “HasHiddenInfo” flag.

Thanks.

@msindia

Thanks for your feedback.

We will surely inform you as soon as required flag is available in the API.

The issues you have found earlier (filed as DIAGRAMNET-51750) have been fixed in Aspose.Diagram for .NET 20.2.

1 Like

@asad.ali,
Thanks for your support :muscle:,

The ticket DIAGRAMNET-51750 is solved in the new version Aspose.Diagram for .NET 20.2.

Thanks.