Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform
Hi Noor Ul Amin,
it looks like you’ve hit a couple of current service limitations rather than a missing SDK flag.
- No “figures” feature flag • The
DocumentAnalysisFeatureenum in the SDK doesn’t include a flag for figures because figure extraction is implicit and, as of today, it’s only functional on image/PDF inputs. • Embedded images in Office files (DOCX, PPTX, XLSX) aren’t yet surfaced asresult.figuresby the prebuilt-layout model. - One-page DOCX behavior • Under the hood the service converts non-PDF inputs to a single “page” before running layout analysis, so you’ll always see
pages: 1for a DOCX. • If you need true page boundaries and embedded-image extraction, convert your DOCX to PDF first (or export each page as an image/PDF) and then callprebuilt-layout. You should then get correct page counts and non‐emptyresult.figures.
Workarounds
• Convert DOCX → PDF (or image) outside the service, then call prebuilt-layout on that PDF/image.
• Pull images directly from DOCX via a library like python-docx if you only want the raw pictures.
There’s no hidden “enable figures” switch in the SDK or portal today—this is a known gap in the GA layout model. We’re tracking figure support for Office docs in upcoming releases.
Hope that clarifies things!
Microsoft Reference Links:
• Layout model overview & supported file types
• Supported document elements (including Figures)
• Analysis features by model (no Figures column for prebuilt-layout)
• Service limits & input requirements
https://learn.microsoft.com/azure/ai-services/document-intelligence/service-limits