Is there a way to get the content from Azure Document Intelligence in markdown BUT separated page by page?
This is what I tried. Content is in markdown but I don't have the page by page separation. On the other hand if I go into the pages attribute, there is no markdown.
document_intelligence_client = DocumentIntelligenceClient(endpoint=endpoint, credential=AzureKeyCredential(key))
poller = document_intelligence_client.begin_analyze_document(
"prebuilt-layout",
analyze_request=AnalyzeDocumentRequest(base64_source=doc_bytes),
output_content_format=ContentFormat.MARKDOWN
)
As mentioned above. I also tried with the "pages" attribute -
document_intelligence_client = DocumentIntelligenceClient(endpoint=endpoint, credential=AzureKeyCredential(key))
poller = document_intelligence_client.begin_analyze_document(
"prebuilt-layout",
analyze_request=AnalyzeDocumentRequest(base64_source=doc_bytes),
output_content_format=ContentFormat.MARKDOWN,
pages='1'
)
and iterate through the doc, but even though it's one page it still takes as much time to analyze as the full document.