4.0.0 (2022-09-08)
Features Added
- Added
GetWords
method toDocumentLine
. It can be used to split the line into separateDocumentWord
instances. - Added derived classes to
DocumentModelOperationDetails
for each kind of operation:DocumentModelBuildOperationDetails
,DocumentModelCopyToOperationDetails
, andDocumentModelComposeOperationDetails
. - Added
DocumentField.ExpectedFieldType
property.
Breaking Changes
- The
DocumentAnalysisClient
andDocumentModelAdministrationClient
now target the service version2022-08-31
, so they don't support2020-06-30-preview
anymore. - Renamed
DocumentModelAdministrationClient
methods to use the termDocumentModel
instead ofModel
only. For example,BuildModel
andGetModels
becameBuildDocumentModel
andGetDocumentModels
.- Similarly,
Operation
types have been renamed to reflect this change. For example,ComposeModelOperation
becameComposeDocumentModelOperation
. - As a consequence,
BuildModelOptions
has been renamed toBuildDocumentModelOptions
.
- Similarly,
- Removed the
BoundingPolygon
type. AllBoundingPolygon
properties are now of typeIReadOnlyList<PointF>
. - Moved all
DocumentField
conversion methods, such asAsDate
andAsString
, to the newDocumentFieldValue
class. They can be accessed from theDocumentField.Value
property. DocumentField.ValueType
(now calledFieldType
) can now beUnknown
when the field value couldn't be parsed by the service. In this case,DocumentField.Content
can be used to get a textual representation of the field.- Updated
DocumentField.AsDate
to return aDateTimeOffset
instead of aDateTime
. - Renamed classes
DocumentModelOperationDetails
andDocumentModelOperationSummary
toOperationDetails
andOperationSummary
, respectively. - Moved property
Result
inDocumentModelOperationDetails
(now calledOperationDetails
) to each of its new derived classes. The property can't be accessed from the base class anymore. - Renamed class
DocTypeInfo
toDocumentTypeDetails
. - Renamed property
Offset
toIndex
in theDocumentSpan
class. - Renamed property
DocType
toDocumentType
in theAnalyzedDocument
class. - Renamed property
DocTypes
toDocumentTypes
in theDocumentModelDetails
class. - Renamed properties
DocumentModelCount
andDocumentModelLimit
toCustomDocumentModelCount
andCustomDocumentModelLimit
in theResourceDetails
class. - Removed property
BuildModelOptions.Prefix
. The prefix must now be set with theprefix
parameter in the methodBuildModel
. - Removed class
DocumentPageKind
and related properties. - Made
BoundingRegion
astruct
instead of aclass
. BoundingRegion
now implements theIEquatable<BoundingRegion>
interface.- Overrode
BoundingRegion.ToString
to include information about its page number and its bounding polygon in its string representation. DocumentSpan
now implements theIEquatable<DocumentSpan>
interface.- Overrode
DocumentSpan.ToString
to include information about its index and its length in its string representation. - Renamed
LengthUnit
toDocumentPageLengthUnit
. This change only affects the type defined in theDocumentAnalysis
namespace. - Renamed
SelectionMarkState
toDocumentSelectionMarkState
. This change only affects the type defined in theDocumentAnalysis
namespace. - Renamed
CopyAuthorization
toDocumentModelCopyAuthorization
. This change only affects the type defined in theDocumentAnalysis
namespace.