How to Analyze only the First and Last Pages of a Document

Praveen Patil 0 Reputation points
2023-10-31T00:34:16.6366667+00:00

I have a Dotnet 7 project in which I am trying to Analyze the Documents using Azure Document Intelligence.
I want to Analyze only the First and Last Pages of the Document. I have coded as below but this only Alayzes the First page, ignoring the rest. Is there any way I could achieve this?

AnalyzeDocumentOperation operation = await client.AnalyzeDocumentFromUriAsync(WaitUntil.Completed, modelId, fileUri, new AnalyzeDocumentOptions() { Pages = { "1", "-1" } });
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
32,757 questions
0 comments No comments
{count} votes