Free Support Forum - aspose.com

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

@msindia

We have logged this issue as DIAGRAMNET-51715 in our issue tracking system for further investigation. We will surely let you know in case we have additional updates regarding its resolution. Please spare us little time.

We are sorry for the inconvenience.

@msindia

Would you please download and try hotfix (Aspose.Diagram for .NET 19.9) which includes fix against DIAGRAMNET-51715 . In case you still face any issue, please feel free to let us know.

@asad.ali

A heartfelt thank you for all that you’ve done. :slightly_smiling_face:, the ticket **’ DIAGRAMNET-51715
is solved. Thanks for the updated version. We started to test some other files. If there is any issue we will let you know.

Thanks for your support, :muscle:

Thanks.

@asad.ali,

Convert ‘.VSD’ to ‘.VSDX’ and removing unused master shapes and styles only the image has a problem.

Problem 1:
Excel Missing
Input:Excel Missing_Old.zip (601.7 KB)

Output:Excel Missing_New.zip (30.8 KB)

Please help to us, We are waiting for your reply.

Thanks.

@msindia

The issue has been logged as DIAGRAMNET-51721 in our issue tracking system for the sake of correction. We will further look into details of it and keep you posted with the status of its resolution. Please spare us little time.

We are sorry for the inconvenience.

@msindia

We investigated the ticket and found that there was no image data in the source .vsd file, so we could not save the image in the output .vsdx file. That is why the excel image is lost in the output file. We are afraid that this issue cannot be resolved.

@asad.ali,

While removing unused master shapes and styles only the image has a problem.

Problem 1:
Background Image Missing (PowerPoint is added in the VISIO)
Input:Background_Image_Mising_Old.zip (123.5 KB)

Output:Background_Image_Mising.zip (19.7 KB)

Problem 2:
CheckBox Missing (CheckBox Control)
Input:Check Box Missing_Old.zip (96.7 KB)

Output:Check Box Missing.zip (76.3 KB)

Problem 3:
Line Missing
Input:Line_Missing_Old.zip (103.1 KB)

Output:Line_Missing.zip (52.1 KB)

Please help to us, We are waiting for your reply.

Thanks.

@msindia

We have logged following tickets against the issues you reported:

  • DIAGRAMNET-51726
  • DIAGRAMNET-51727
  • DIAGRAMNET-51728

We will surely look into details of logged ticket and keep you posted with the status of their resolution. Please be patient and spare us little time.

We are sorry for the inconvenience.

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

1 Like

The issues you have found earlier (filed as DIAGRAMNET-51726,DIAGRAMNET-51727,DIAGRAMNET-51728) have been fixed in Aspose.Diagram for .NET 19.11.

1 Like

@asad.ali,

Thank you for all that you’ve done. :slightly_smiling_face:, the ticket **’ DIAGRAMNET-51726,DIAGRAMNET-51727,DIAGRAMNET-51728
is solved. Thanks for the updated version. We started to test some other files. If there is any issue we will let you know.

Thanks for your support, :muscle:

Thanks.

1 Like

@asad.ali,

We have started to test with new Aspose.Diagram for .NET 19.12. The above solved ticket ’ DIAGRAMNET-51664, DIAGRAMNET-51665, DIAGRAMNET-51684, DIAGRAMNET-51726’ is not solved in the New Aspose.Diagram for .NET 19.12. Please have a look and waiting for your reply.

Thanks

@msindia

These issues were resolved in previous versions of the API. Would you please confirm if these start occurring again in v19.12?

@asad.ali,

We have tested with Aspose.Diagram for .NET 19.11. The above tickets are solved.

In the new version Aspose.Diagram for .NET 19.12. The above mentioned ticket has problems.

Thanks

@msindia

We have reopened these tickets and will let you know about their further status after investigation.

@msindia

Please try using Aspose.Diagram for .NET 19.12.1 in which these reopened issues are resolved. In case of any further assistance, please feel free to let us know.

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

The tickets **’ DIAGRAMNET-51664 , DIAGRAMNET-51665 , DIAGRAMNET-51684 , DIAGRAMNET-51726
is solved in the new version Aspose.Diagram for .NET 19.12.1.

Thanks.

@asad.ali,

While implementing this changes in our product, we found one issue (the file size is keep on increasing).
Step 1:
I have a Visio file with private info like unused master shapes and styles.
File Name: ‘Dialog 2_Old.Vsdx’.
File Size: 53.9 KB (55,220 bytes).
Dialog - 2_Old.zip (47.3 KB)

Step 2:
Remove the ‘RemoveHiddenInfoItem’ using our ‘Aspose.Diagram.dll’ the visio size reduced.
File Name : ‘Dialog 2_New.Vsdx’.
File Size: 29.3 KB (30,093 bytes).
Dialog - 2_New.zip (26.8 KB)

Step 3:
Again do the ‘RemoveHiddenInfoItem’ work with the above output file (‘Dialog 2_New.Vsdx’). Now the file size is increased ‘74 bytes’.
File Name : ‘Dialog 2_New_New.Vsdx’.
File Size: 29.4 KB (30,167 bytes).
Dialog - 2_New_New.zip (26.9 KB)

Step 4:
Again do the ‘RemoveHiddenInfoItem’ work with the above output file( ‘Dialog 2_New_New.Vsdx’). Now the file size is increased ‘147 bytes’.
File Name : ‘Dialog 2_New_New_New.Vsdx’
File Size: 29.5 KB (30,309 bytes).
Dialog - 2_New_New_New.zip (27.0 KB)

Code :

    string[] files = Directory.GetFiles(strInputPath, "*.vsdx");

		foreach(string strFile in files)
			{
				Diagram vdxDiagram = new Diagram(strFile);
				vdxDiagram.RemoveHiddenInformation((int) (RemoveHiddenInfoItem.Masters | RemoveHiddenInfoItem.Shapes|RemoveHiddenInfoItem.Styles|RemoveHiddenInfoItem.PersonalInfo));
				
				vdxDiagram.Save(strOutputPath + Path.GetFileName(strFile), SaveFileFormat.VSDX);
			} 

If we use already removed Visio, the file size is keep on increasing.
Could you please investigate this?

Thanks.

@msindia

We have logged an investigation ticket as DIAGRAMNET-51743 in our issue tracking system. We will surely investigate this scenario in details and keep you posted with the status of its correction. Please be patient and spare us little time.

We are sorry for the inconvenience.

@asad.ali,
Thank you for your support.

I would like to ask you if you could provide us the latest version Aspose Digram. We need to test and implement it.

Thanks.