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

Free Support Forum - aspose.com

Extracting images with labels a,b

Dear Team

I want to extract images with labels.I have attached the
sample documentSample3.zip (1.3 MB)
Expected output contains every images extracted in jpeg format seperately.
Thanks in advance.


Thanks for your inquiry. In your case, we suggest you following solution.

  1. Get the paragraph nodes using Document.GetChildNodes method.
  2. Iterate over the paragraphs and get their text using Node.toString method.
  3. If the text of paragraph starts with “Fig”, get the previous node using Node.PreviousSibling property.
  4. If the previous node is Shape node, extract the node and import it into new document.

Please check the code example shared in your other thread here:

Hi @tahir.manzoor
Thanks for the reply.