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

Free Support Forum - aspose.com

Delete caption

Hi Team,
I am extracting the images and saved in separate document using figure caption as keyword.In that ,I am using the following code for extraction process .it extract the fig caption separately and images separately .so how to delete the figure caption.i am need the images only.

The sample code isTest2.zip (1.1 KB)

Thanks in advance
priyanga G

@priyanga,

Thanks for your inquiry. Please remove “nodes.add(paragraph)”, the first line of code in If block, to get the desired output.

if (paragraph.toString(SaveFormat.TEXT).trim().startsWith("Fig"))
{
	nodes.add(paragraph);
// Your code...
}

Hi @tahir.manzoor

Thanks a lot.

It’s working fine .

Thanks &regards,
Priyanga G