Is there a way to analyze only the first and last pages of a document in DotNet 7 C# program?
I tried with the below C# code but the program is only analyzing the first page and ignoring the rest of the pages
AnalyzeDocumentOperation operation = await client.AnalyzeDocumentFromUriAsync(WaitUntil.Completed, modelId, fileUri, new AnalyzeDocumentOptions() { Pages = { "1", "-1" } });
Based on the documentation,
AnalyzeDocumentOptions.Pages Property
can only inputs page list or page number.So, to process first and last page you need to mention the relevant page numbers to process specific pages.
Or alternately, you can process the complete document and take the first and last page results based on count of pages.