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)