We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Remove fig caption in table

Able to extract images from table with fig caption .how to remove the fig caption inside the table.

Hi Priya,

Thanks for your inquiry. The fig caption is in the last row of table in your document. You can remove the last row of table using following code snippet. Hope this helps you.

If you face any issue, please share your expected output document. We will then guide you accordingly.

if(table.getLastRow().toString(SaveFormat.TEXT).contains("Figure"))
table.getLastRow().remove();