Share via


DocumentAnalysisModelFactory.DocumentPage Method

Definition

Initializes a new instance of DocumentPage.

public static Azure.AI.FormRecognizer.DocumentAnalysis.DocumentPage DocumentPage (int pageNumber = 0, float? angle = default, float? width = default, float? height = default, Azure.AI.FormRecognizer.DocumentAnalysis.DocumentPageLengthUnit? unit = default, System.Collections.Generic.IEnumerable<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentSpan> spans = default, System.Collections.Generic.IEnumerable<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentWord> words = default, System.Collections.Generic.IEnumerable<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentSelectionMark> selectionMarks = default, System.Collections.Generic.IEnumerable<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentLine> lines = default, System.Collections.Generic.IEnumerable<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentBarcode> barcodes = default, System.Collections.Generic.IEnumerable<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentFormula> formulas = default);
static member DocumentPage : int * Nullable<single> * Nullable<single> * Nullable<single> * Nullable<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentPageLengthUnit> * seq<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentSpan> * seq<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentWord> * seq<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentSelectionMark> * seq<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentLine> * seq<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentBarcode> * seq<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentFormula> -> Azure.AI.FormRecognizer.DocumentAnalysis.DocumentPage
Public Shared Function DocumentPage (Optional pageNumber As Integer = 0, Optional angle As Nullable(Of Single) = Nothing, Optional width As Nullable(Of Single) = Nothing, Optional height As Nullable(Of Single) = Nothing, Optional unit As Nullable(Of DocumentPageLengthUnit) = Nothing, Optional spans As IEnumerable(Of DocumentSpan) = Nothing, Optional words As IEnumerable(Of DocumentWord) = Nothing, Optional selectionMarks As IEnumerable(Of DocumentSelectionMark) = Nothing, Optional lines As IEnumerable(Of DocumentLine) = Nothing, Optional barcodes As IEnumerable(Of DocumentBarcode) = Nothing, Optional formulas As IEnumerable(Of DocumentFormula) = Nothing) As DocumentPage

Parameters

pageNumber
Int32

1-based page number in the input document.

angle
Nullable<Single>

The general orientation of the content in clockwise direction, measured in degrees between (-180, 180].

width
Nullable<Single>

The width of the image/PDF in pixels/inches, respectively.

height
Nullable<Single>

The height of the image/PDF in pixels/inches, respectively.

unit
Nullable<DocumentPageLengthUnit>

The unit used by the width, height, and boundingPolygon properties. For images, the unit is "pixel". For PDF, the unit is "inch".

spans
IEnumerable<DocumentSpan>

Location of the page in the reading order concatenated content.

words
IEnumerable<DocumentWord>

Extracted words from the page.

selectionMarks
IEnumerable<DocumentSelectionMark>

Extracted selection marks from the page.

lines
IEnumerable<DocumentLine>

Extracted lines from the page, potentially containing both textual and visual elements.

barcodes
IEnumerable<DocumentBarcode>

Extracted barcodes from the page.

formulas
IEnumerable<DocumentFormula>

Extracted formulas from the page.

Returns

A new DocumentPage instance for mocking.

Applies to