Hi Luzuko Yena,

Yes, it is possible to extract only tables using Azure AI Document Intelligence.

Azure AI Document Intelligence provides multiple models to analyze documents, such as:

·       Prebuilt Layout Model

·       Prebuilt Document Model

·       Custom Models

To extract only tables, you should use the Layout Model, which is designed for this purpose.

What it does:

·       Extracts text lines

·       Extracts tables (structure + cell content)

·       Extracts selection marks (checkboxes)

 It does not extract key-value pairs or entities — perfect if you're only focused on layout elements like tables.

To Use (via REST API / SDKs / Azure Portal)

Example using Python SDK:

from azure.ai.formrecognizer import DocumentAnalysisClient
from azure.core.credentials import AzureKeyCredential

endpoint = "https://.cognitiveservices.azure.com/"
key = ""

document_analysis_client = DocumentAnalysisClient(
    endpoint=endpoint, credential=AzureKeyCredential(key)
)

# Use layout model
poller = document_analysis_client.begin_analyze_document(
    "prebuilt-layout", document=open("your_file.pdf", "rb")
)
result = poller.result()

# Extract tables only
for table in result.tables:
    print(f"\nTable with {table.row_count} rows and {table.column_count} columns")
    for cell in table.cells:
        print(f"Cell [{cell.row_index}, {cell.column_index}] - content: '{cell.content}'")

Hope this helps. Do let me know if you any further queries.


If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

Thank you!  

Answer from Prashanth Veeragoni on learn.microsoft.com
🌐
DEV Community
dev.to › mcombp › extract-table-data-from-documents-using-azure-ai-document-intelligence-1maa
Extract table data from Documents using Azure AI Document Intelligence - DEV Community
October 16, 2024 - For example, where the tables start on a different page (we can append &pages= to the URI to extract a specific page 🙂). I have to start by mentioning that I could not have done this first part without the help of this YouTube video from ...
Top answer
1 of 2
1

Hi Luzuko Yena,

Yes, it is possible to extract only tables using Azure AI Document Intelligence.

Azure AI Document Intelligence provides multiple models to analyze documents, such as:

·       Prebuilt Layout Model

·       Prebuilt Document Model

·       Custom Models

To extract only tables, you should use the Layout Model, which is designed for this purpose.

What it does:

·       Extracts text lines

·       Extracts tables (structure + cell content)

·       Extracts selection marks (checkboxes)

 It does not extract key-value pairs or entities — perfect if you're only focused on layout elements like tables.

To Use (via REST API / SDKs / Azure Portal)

Example using Python SDK:

from azure.ai.formrecognizer import DocumentAnalysisClient
from azure.core.credentials import AzureKeyCredential

endpoint = "https://.cognitiveservices.azure.com/"
key = ""

document_analysis_client = DocumentAnalysisClient(
    endpoint=endpoint, credential=AzureKeyCredential(key)
)

# Use layout model
poller = document_analysis_client.begin_analyze_document(
    "prebuilt-layout", document=open("your_file.pdf", "rb")
)
result = poller.result()

# Extract tables only
for table in result.tables:
    print(f"\nTable with {table.row_count} rows and {table.column_count} columns")
    for cell in table.cells:
        print(f"Cell [{cell.row_index}, {cell.column_index}] - content: '{cell.content}'")

Hope this helps. Do let me know if you any further queries.


If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

Thank you!  

2 of 2
1

Hey Luzuko Yena,

Thanks for asking on Microsoft Q&A!

You can pull tables using Azure AI Document Intelligence with the prebuilt-layout model. It grabs tables, text, and other stuff, but there’s no direct way to get only tables from the API. Just take the JSON response and pick out the "tables" section in your code. For example, in Python, you’d grab the rows, columns, and cell data from "tables", skipping everything else.

Hope this does the trick! If it helps, please upvote and mark as accepted. Thanks!

References:

  • Document layout analysis - Document Intelligence
  • Use Document Intelligence client library or REST API
Discussions

How to extract table specific values in Document Intelligence Custom Extraction Model
In Document Intelligence Custom ... to extract. It is doing fine on Document Intelligence Studio, but when I wanted to fit into my solution, the tables not returning the values I want, for example, I have a table "Address", which contains a few column "City", "State", "Postcode", etc. The code Azure provided return ... More on learn.microsoft.com
🌐 learn.microsoft.com
2
0
Using Azure AI Document Intelligence, custom extraction model. How do I merge tables split over 2 pages?
We should be merging the tables ... single table through SDK. Please share the sample code and file in private chat for debugging. ... Welcome to the Microsoft Q&A and thank you for posting your questions here. I understand that you are using Azure AI Document Intelligence, custom extraction model and ... More on learn.microsoft.com
🌐 learn.microsoft.com
1
0
October 30, 2025
Azure AI Document Intelligence - how to extract data when item or table is not consistently on the same page???
So…. The appendix doesn’t have any text “Appendix” anywhere? And no content page to refer the appendix? More on reddit.com
🌐 r/AZURE
4
1
December 2, 2024
AI Document Extraction on Azure - Options, Comparison & Recommendations for Invoice/Contract Processing
I’m not familiar with the dev side but we use a hybrid approach, DI for as much as possible. But since some documents have stamps or notes on them we fallback to OAI for that. More on reddit.com
🌐 r/AZURE
17
4
December 18, 2025
🌐
Microsoft Learn
learn.microsoft.com › en-us › azure › ai-services › document-intelligence › prebuilt › layout
Document layout analysis - Document Intelligence - Foundry Tools | Microsoft Learn
You can use Document Intelligence to extract data such as text, tables, table headers, selection marks, and structure information from documents. You need the following resources: An Azure subscription.
🌐
Medium
medium.com › @tinkerblogs › automatic-table-extraction-extracting-invoice-tables-with-python-and-azure-ai-document-4a1e816e305e
Automatic Table Extraction: Extracting Invoice Tables with Python and Azure AI Document Intelligence | by Tinker Blogs | Medium
October 8, 2023 - Welcome to my blog, where we’ll explore the amazing capabilities of Azure AI Document Intelligence (formerly known as Form Recognizer) using a simple Python example. We’ll look at a practical method for effectively extracting tables from PDF documents, which can help you streamline your ...
🌐
GitHub
github.com › azure-data-ai-hub › document-intelligence › blob › main › README.md
document-intelligence/README.md at main · azure-data-ai-hub/document-intelligence · GitHub
AZURE_DOCUMENTINTELLIGENCE_ENDPOINT=https://<your-resource>.cognitiveservices.azure.com/ AZURE_DOCUMENTINTELLIGENCE_KEY=<key> python .\src\di_extract_tables.py .\sample.pdf --out output --format both
Author: azure-data-ai-hub
🌐
Elastic
elastic.co › search-labs › blog › azure-ai-document-intelligence-parse-pdf-text-tables
Azure AI Document Intelligence: Parsing PDF text & table data | Elasticsearch Labs
March 26, 2025 - We will test the retrieval of table data with the following prompt: Compare/contrast subscription revenue for Q2-2025, Q1-2025, Q4-2024 and Q3-2024? This prompt is tricky because it requires context from four different PDFs that represent this ...
🌐
Microsoft Azure
azure.microsoft.com › en-us › products › ai-foundry › tools › document-intelligence
Azure Document Intelligence (now part of Azure Content Understanding in Foundry Tools) | Microsoft Azure
Easily find specific information in your documents and forms, such as total accounts payable, by integrating Document Intelligence with Azure Applied AI Search. Extract text, key-value pairs, tables, and structures from documents, and pipe them into your back-end systems to perform tasks such as claim, invoice, and receipt processing.
Find elsewhere
🌐
Medium
billtcheng2013.medium.com › document-table-extraction-646202a2a12c
Document Table Extraction. To Pandas Dataframe with Azure Document… | by Xin Cheng | Medium
May 22, 2024 - Azure Document Intelligence also supports different document types (e.g. Health insurance card, US tax forms, US mortgage forms, etc.), as well as Amazon Textract. Both extraction result is JSON format.
🌐
GitHub
github.com › SundareshSankaran › Azure---Extract-Tables-via-OCR
GitHub - SundareshSankaran/Azure---Extract-Tables-via-OCR: Upstream repository for a SAS Studio Custom Step example of how to obtain parameters and carry out Azure's Document Intelligence Cloud Service operations
Upstream repository for a SAS Studio Custom Step example of how to obtain parameters and carry out Azure's Document Intelligence Cloud Service operations - SundareshSankaran/Azure---Extract-Tables-via-OCR
Author: SundareshSankaran
🌐
Matthew Devaney
matthewdevaney.com › home › power automate › how to extract tables from a pdf in power automate
How To Extract Tables From A PDF In Power Automate
November 13, 2025 - The output is an array of values with a row number, a column number and the content of the table cell. The first thing we must do is create a new document intelligence resource. Open the Azure Portal and search for Document Intelligences.
🌐
Signisys
signisys.com › home › blog › azure ai document intelligence: complete deep dive
Azure AI Document Intelligence: Processing Guide (2026) - Signisys
April 14, 2026 - This two-service pattern combines ... service could handle effectively alone. For example, extract all line items from thousands of invoices with Document Intelligence....
🌐
Microsoft Learn
learn.microsoft.com › en-us › samples › azure-samples › document-intelligence-code-samples › document-intelligence-code-samples
Azure Document Intelligence code samples - Code Samples | Microsoft Learn
October 22, 2024 - sample_identify_cross_page_tables.ipynb and sample_identify_cross_page_tables.py:Sample postprocessing script to identify cross-page tables based on business rules. To learn more about Azure Document Intelligence features and capabilities, see the client library API reference documentation. Document analysis models enable text extraction from forms and documents and return structured business-ready content ready for your organization's action, use, or development.
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 1662591 › how-to-extract-table-specific-values-in-document-i
How to extract table specific values in Document Intelligence Custom Extraction Model - Microsoft Q&A
Below is my sample code in C#: foreach (DocumentField row in fieldValue.Value.AsList()) { if (row.FieldType == DocumentFieldType.Dictionary) { var rowFields = row.Value.AsDictionary(); string columnName1 = rowFields.TryGetValue("columnName1", ...
🌐
Microsoft Learn
learn.microsoft.com › en-us › azure › ai-services › document-intelligence › prebuilt › general-document
General key-value extraction - Document Intelligence - Foundry Tools | Microsoft Learn
August 15, 2026 - For Document Intelligence versions v4.0 preview versions and going forward, the general document model (prebuilt-document) is deprecated. To extract key-value pairs, selection marks, text, tables, and structure from documents, use the following models: Note: Azure AI Document Intelligence v3.0 API (2022-08-31) reaches end of support on March 30, 2029.
🌐
Azure Docs
docs.azure.cn › en-us › ai-services › document-intelligence › prebuilt › layout
Document layout analysis - Document Intelligence - Azure AI services | Azure Docs
The model supports extracting tables that are rotated. Each table cell contains the row and column index and bounding polygon coordinates. For the cell text, the model outputs the span information that contains the starting index (offset). The model also outputs the length within the top-level content that contains the full text from the document. Here are a few factors to consider when you use the Document Intelligence bale extraction capability:
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 5602977 › using-azure-ai-document-intelligence-custom-extrac
Using Azure AI Document Intelligence, custom extraction model. How do I merge tables split over 2 pages? - Microsoft Q&A
October 30, 2025 - https://learn.microsoft.com/en-us/samples/azure-samples/document-intelligence-code-samples/document-intelligence-code-samples/ C. Best practice for the same: Use Custom Neural Model for flexible layout handling.
🌐
Reddit
reddit.com › r/azure › azure ai document intelligence - how to extract data when item or table is not consistently on the same page???
r/AZURE on Reddit: Azure AI Document Intelligence - how to extract data when item or table is not consistently on the same page???
December 2, 2024 -

Hi all...

I am building a custom extraction model which is based on PDF reports. The first several pages are consistent, and I can repeatedly get the key data from the fields.

However, there is an appendix in each PDF which for example appears on page 20 in one report, but on page 22 on another due to the amount of information that is present in the document in various sections.

To complicate the matter further this appendix is often running over several pages.

When training the model fails to find the appendix in any of the cases. I'm guessing this is because I am assigning a field to page 20 in one document and page 22 in another??? Is there a method of having the appendix identified without the page number being considered?

Tony

🌐
Microsoft Learn
learn.microsoft.com › en-us › azure › ai-services › document-intelligence › train › custom-model
Custom document models - Document Intelligence - Foundry Tools | Microsoft Learn
To create a custom extraction model, label a dataset of documents with the values you want extracted and train the model on the labeled dataset. You only need five examples of the same form or document type to get started. ... Document Intelligence v4.0 2024-11-30 (GA) API supports custom neural model overlapping fields, signature detection and table, row and cell level confidence.
🌐
Medium
learnmycourse.medium.com › document-intelligence-using-azure-document-intelligence-9147bf4d43d6
Document intelligence using Azure Document Intelligence | by LEARNMYCOURSE | Medium
December 30, 2024 - Upload the PDF to Azure Document Intelligence. Extract content (e.g., tables, text, or structured fields). ... Extract the text. Use a natural language processing (NLP) model (e.g., OpenAI GPT, Azure OpenAI, or Hugging Face) to process questions ...
🌐
YouTube
youtube.com › microsoft reactor
Using Azure AI Document Intelligence to Accelerate Data Ingestion and Extraction - YouTube
**About this session:** Learn how Azure AI Document Intelligence can be used to automate the extraction of data from forms, documents, and images. In this se...
Published: April 8, 2024
Views: 7K