How is your experience with the OutSystems Community?
18
Views
2
Comments
How to get picture and diagram text in word files?

Hi, There,

How to get picture and diagram text from word files ? and it is better that it can get from specified paragraph . 

Many Thanks,

Jack

2018-12-10 12-16-21
Goncalo Duarte Almeida

Hello @Jack Bao 

In ODC you can build an AI Agent that reads the Word file directly and extracts exactly the information you need - text, images, and even diagram content. 

You simply upload the .docx, pass it to the agent with instructions like: “Extract all images and the text from paragraph 7”, and the agent returns: 

  • The paragraph text 
  • The images (Base64) 
  • Any description of diagrams
2023-09-21 12-55-43
SIRAJKHILJI

Hi @Jack Bao ,


You can use a Word processing library (OpenXML, Aspose.Words, Spire.Doc) to extract paragraph text. For text inside images or diagrams, extract the images and apply OCR (Azure Vision, Tesseract). You can target specific paragraphs by index or heading before processing associated images. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.