Hi @Ishan Kaul ,
Thank you for using the Microsoft Q&A platform.
Yes, you are correct. The 'width' and 'height' fields in the AnalyzeResult -> DocumentPage class of the Azure Document Intelligence Read API are optional fields.
If the API is unable to determine the width and height of a page, it will not return a value for these fields. There are several reasons why the API may not be able to determine the page dimensions, including:
- The page is blank or contains no text or images.
- The page is damaged or corrupted, making it difficult to extract the dimensions.
- The page is an unusual size or shape that the API is not able to recognize.
- If the API is unable to determine the page dimensions, it will not return a value for these fields.
Regarding your next question, there is no default value for either the 'width' or 'height' fields in the 'DocumentPage' class of the Azure Document Intelligence Read API that you should assume is accurate if the field is not returned.
Hope this helps.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful.