次の方法で共有


DocumentIntelligenceModelFactory.DocumentPage Method

Definition

Initializes a new instance of DocumentPage.

public static Azure.AI.DocumentIntelligence.DocumentPage DocumentPage (int pageNumber = 0, float? angle = default, float? width = default, float? height = default, Azure.AI.DocumentIntelligence.LengthUnit? unit = default, System.Collections.Generic.IEnumerable<Azure.AI.DocumentIntelligence.DocumentSpan> spans = default, System.Collections.Generic.IEnumerable<Azure.AI.DocumentIntelligence.DocumentWord> words = default, System.Collections.Generic.IEnumerable<Azure.AI.DocumentIntelligence.DocumentSelectionMark> selectionMarks = default, System.Collections.Generic.IEnumerable<Azure.AI.DocumentIntelligence.DocumentLine> lines = default, System.Collections.Generic.IEnumerable<Azure.AI.DocumentIntelligence.DocumentBarcode> barcodes = default, System.Collections.Generic.IEnumerable<Azure.AI.DocumentIntelligence.DocumentFormula> formulas = default);
static member DocumentPage : int * Nullable<single> * Nullable<single> * Nullable<single> * Nullable<Azure.AI.DocumentIntelligence.LengthUnit> * seq<Azure.AI.DocumentIntelligence.DocumentSpan> * seq<Azure.AI.DocumentIntelligence.DocumentWord> * seq<Azure.AI.DocumentIntelligence.DocumentSelectionMark> * seq<Azure.AI.DocumentIntelligence.DocumentLine> * seq<Azure.AI.DocumentIntelligence.DocumentBarcode> * seq<Azure.AI.DocumentIntelligence.DocumentFormula> -> Azure.AI.DocumentIntelligence.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 LengthUnit) = 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<LengthUnit>

The unit used by the width, height, and polygon 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