IconCaption of embedded ZIP file is incorrect

Hi Team.
I am using Aspose word Java version 19.6 .
I am trying to extract name of attachment zip file but it is returning empty string.Following code is being used to extract attachment name:

 Document doc = new Document(docxFile.getAbsolutePath());
 doc.save(outFile, SaveFormat.PDF);//outfile is output PDF file 
 NodeCollection<Shape> shapes = (NodeCollection<Shape>) doc.getChildNodes(NodeType.SHAPE, true);

         for (Shape shape : shapes)
		{
			tempOleFormatRef = shape.getOleFormat();

			if ( tempOleFormatRef != null  )
			{
				
				tempExtension = tempOleFormatRef.getSuggestedExtension();					
				fileName = tempOleFormatRef.getIconCaption(); // this file name is empty but it should be name of zip file.
             }

         }

Could you please help me in it zip_issue.zip (25.4 KB)

@yogeshkhandar

We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-18991. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

@yogeshkhandar

Thanks for your patience. It is to inform you that the issue which you are facing is actually not a bug in Aspose.Words. So, we have closed this issue (WORDSNET-18991) as ‘Not a Bug’.

In case of OLE object is not embedded as icon or caption could not be retrieved returns empty string. MS Word unable to extract name as well. Please check the attached image for detail.

OLE icon caption.png (26.5 KB)

In your case, we suggest you please use OleFormat.SuggestedFileName property.