Class PdfImportDiagnostic
A diagnostic produced while importing a PDF.
Inherited Members
Namespace: DRIT.Document.Import.Pdf
Assembly: DRIT.Document.dll
Syntax
public sealed class PdfImportDiagnostic
Constructors
PdfImportDiagnostic(string, PdfImportDiagnosticSeverity, string, int?, PdfRect?, string, PdfImportFallbackAction, double?, string)
Initializes a new PdfImportDiagnostic from normalized PDF extraction data.
Declaration
public PdfImportDiagnostic(string code, PdfImportDiagnosticSeverity severity, string message, int? pageNumber = null, PdfRect? sourceBounds = null, string sourceObjectId = null, PdfImportFallbackAction chosenAction = PdfImportFallbackAction.None, double? confidence = null, string suggestedAction = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | code | |
| PdfImportDiagnosticSeverity | severity | |
| string | message | |
| int? | pageNumber | |
| PdfRect? | sourceBounds | |
| string | sourceObjectId | |
| PdfImportFallbackAction | chosenAction | |
| double? | confidence | |
| string | suggestedAction |
Properties
Action
Gets the fallback action selected for the diagnostic.
Declaration
public PdfImportFallbackAction Action { get; }
Property Value
| Type | Description |
|---|---|
| PdfImportFallbackAction |
ChosenAction
Gets the fallback action selected for the diagnostic.
Declaration
public PdfImportFallbackAction ChosenAction { get; }
Property Value
| Type | Description |
|---|---|
| PdfImportFallbackAction |
Code
Gets the stable diagnostic code.
Declaration
public string Code { get; }
Property Value
| Type | Description |
|---|---|
| string |
Confidence
Gets the deterministic confidence score for this decision, from 0 to 1.
Declaration
public double? Confidence { get; }
Property Value
| Type | Description |
|---|---|
| double? |
Message
Gets the human-readable diagnostic message.
Declaration
public string Message { get; }
Property Value
| Type | Description |
|---|---|
| string |
PageNumber
Gets the one-based PDF page number associated with this result.
Declaration
public int? PageNumber { get; }
Property Value
| Type | Description |
|---|---|
| int? |
Severity
Gets the severity assigned to the diagnostic.
Declaration
public PdfImportDiagnosticSeverity Severity { get; }
Property Value
| Type | Description |
|---|---|
| PdfImportDiagnosticSeverity |
SourceBounds
Gets the source PDF bounds associated with the diagnostic, when available.
Declaration
public PdfRect? SourceBounds { get; }
Property Value
| Type | Description |
|---|---|
| PdfRect? |
SourceObjectId
Gets the source object identifier associated with the diagnostic, when available.
Declaration
public string SourceObjectId { get; }
Property Value
| Type | Description |
|---|---|
| string |
SuggestedAction
Gets the recommended next action for the diagnostic.
Declaration
public string SuggestedAction { get; }
Property Value
| Type | Description |
|---|---|
| string |