How i can do Word(.docx) File Summarize using gemini/openAi's Apis

I want to try document summarization using Gemini, but since Gemini doesn’t directly support DOCX files, I extracted text from the document for summarization. However, this approach doesn’t handle tables and charts well. Is there a better way to accurately summarize DOCX files while preserving their structure?

Hi @Bhavik_patel

Welcome to the forum.

You could either print or export your Word document to PDF and feed this to the API.
This would preserve your content as you’re asking for.

Cheers