79596459

Date: 2025-04-28 12:28:05
Score: 1
Natty:
Report link

This is what I tried now and this is working.

//Content is a byte array containing document data
BinaryData data = BinaryData.FromBytes(Content);

var analyzeOptions = new AnalyzeDocumentOptions(modelId, data) 
{ 
  Pages = "1-2", 
  Features = { DocumentAnalysisFeature.QueryFields }, 
  QueryFields = { "FullName", "CompanyName", "JobTitle" } 
};

Operation<AnalyzeResult> operation = await client.AnalyzeDocumentAsync(WaitUntil.Completed, analyzeOptions);

AnalyzeResult result = operation.Value;
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Siddharth Ubana