Class PdfImportPageResult
Outcome and basic extraction counts for one imported PDF page.
Inherited Members
Namespace: DRIT.Document.Import.Pdf
Assembly: DRIT.Document.dll
Syntax
public sealed class PdfImportPageResult
Constructors
PdfImportPageResult(int, double, double, int, int, int, string, IEnumerable<PdfImportDiagnostic>, bool, PdfImportLayoutDecision)
Initializes a new PdfImportPageResult from normalized PDF extraction data.
Declaration
public PdfImportPageResult(int pageNumber, double width, double height, int rotation, int textElementCount, int importedTextElementCount, string extractedText, IEnumerable<PdfImportDiagnostic> diagnostics, bool hasFallbacks, PdfImportLayoutDecision layoutDecision = null)
Parameters
| Type | Name | Description |
|---|---|---|
| int | pageNumber | |
| double | width | |
| double | height | |
| int | rotation | |
| int | textElementCount | |
| int | importedTextElementCount | |
| string | extractedText | |
| IEnumerable<PdfImportDiagnostic> | diagnostics | |
| bool | hasFallbacks | |
| PdfImportLayoutDecision | layoutDecision |
Properties
Diagnostics
Gets the diagnostics collected while producing this result.
Declaration
public IReadOnlyList<PdfImportDiagnostic> Diagnostics { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<PdfImportDiagnostic> |
ExtractedText
Gets the page text extracted before document emission.
Declaration
public string ExtractedText { get; }
Property Value
| Type | Description |
|---|---|
| string |
HasFallbacks
Gets a value indicating whether any fallback handling was used.
Declaration
public bool HasFallbacks { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Height
Gets the height of the represented page or bounds in points.
Declaration
public double Height { get; }
Property Value
| Type | Description |
|---|---|
| double |
ImportedTextElementCount
Gets the number of source text elements emitted into the document.
Declaration
public int ImportedTextElementCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
LayoutDecision
Layout choice used to emit this page.
Declaration
public PdfImportLayoutDecision LayoutDecision { get; }
Property Value
| Type | Description |
|---|---|
| PdfImportLayoutDecision |
PageNumber
Gets the one-based PDF page number associated with this result.
Declaration
public int PageNumber { get; }
Property Value
| Type | Description |
|---|---|
| int |
Rotation
Gets the normalized clockwise page rotation in degrees.
Declaration
public int Rotation { get; }
Property Value
| Type | Description |
|---|---|
| int |
TextElementCount
Gets the number of source text elements found on the page.
Declaration
public int TextElementCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
Width
Gets the width of the represented page or bounds in points.
Declaration
public double Width { get; }
Property Value
| Type | Description |
|---|---|
| double |