Footnotes for Tables and Figures

Kindly help me below mentioned question.

  1. footnotes should only appear on the last page of the table.
  2. figure footnotes should appear below the figure.

Please find the input and Expected output word document.
Expected_output_footnote12.docx (70.1 KB)
Input_footnote.docx (72.2 KB)

@Manasahr I have already answered a similar question your coleague recently asked:
https://forum.aspose.com/t/table-and-figure-footnotes-should-appear-below-the-figure-and-table/257156
The similar situation is here, there are no footnotes in your document, there are in one case a row with table header and content that is considered as footnotes in another case there is a set of paragraphs above the paragraph with shape. Since there is no pattern that can be used to identify such paragraphs, I do not see an ability to provide you an universal solution for this task.