How do I extract the name of a subdocument?

Hi, using Java here. I have a document with a subdcument inside.

After opening the document with Aspose, by using d.getChildNodes(NodeType.SUB_DOCUMENT, true) I can successfully retrieve the list of subdocuments and cast each memeber to “SubDocument”.

How do I retrieve the associated file name? In the debugger I can see that it’s stored in the class, but Subdocument does not seem to have a method to access it?

Thanks!

Hi Cristiano,


Thanks for your inquiry. Could you please attach your sample Word document here for testing? How would you extract the name of a SubDocument by using MS Word 2016? We will investigate the scenario on our end and provide you more information.

Best regards,